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§fn eq(&self, other: &OverflowModes) -> bool
fn eq(&self, other: &OverflowModes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OverflowModes
impl PartialOrd for OverflowModes
source§fn partial_cmp(&self, other: &OverflowModes) -> Option<Ordering>
fn partial_cmp(&self, other: &OverflowModes) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OverflowModes
impl Eq for OverflowModes
impl StructuralEq for OverflowModes
impl StructuralPartialEq for OverflowModes
Auto Trait Implementations§
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