Enum spirv::OverflowModes
source · #[repr(u32)]pub enum OverflowModes {
WRAP = 0,
SAT = 1,
SAT_ZERO = 2,
SAT_SYM = 3,
}
Expand description
SPIR-V operand kind: OverflowModes
Variants§
Implementations§
Trait Implementations§
source§impl Clone for OverflowModes
impl Clone for OverflowModes
source§fn clone(&self) -> OverflowModes
fn clone(&self) -> OverflowModes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OverflowModes
impl Debug for OverflowModes
source§impl FromStr for OverflowModes
impl FromStr for OverflowModes
source§impl Hash for OverflowModes
impl Hash for OverflowModes
source§impl Ord for OverflowModes
impl Ord for OverflowModes
source§fn cmp(&self, other: &OverflowModes) -> Ordering
fn cmp(&self, other: &OverflowModes) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OverflowModes
impl PartialEq for OverflowModes
source§impl PartialOrd for OverflowModes
impl PartialOrd for OverflowModes
impl Copy for OverflowModes
impl Eq for OverflowModes
impl StructuralPartialEq for OverflowModes
Auto Trait Implementations§
impl Freeze for OverflowModes
impl RefUnwindSafe for OverflowModes
impl Send for OverflowModes
impl Sync for OverflowModes
impl Unpin for OverflowModes
impl UnwindSafe for OverflowModes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)