Enum spirv::QuantizationModes
source · #[repr(u32)]pub enum QuantizationModes {
TRN = 0,
TRN_ZERO = 1,
RND = 2,
RND_ZERO = 3,
RND_INF = 4,
RND_MIN_INF = 5,
RND_CONV = 6,
RND_CONV_ODD = 7,
}
Expand description
SPIR-V operand kind: QuantizationModes
Variants§
TRN = 0
TRN_ZERO = 1
RND = 2
RND_ZERO = 3
RND_INF = 4
RND_MIN_INF = 5
RND_CONV = 6
RND_CONV_ODD = 7
Implementations§
Trait Implementations§
source§impl Clone for QuantizationModes
impl Clone for QuantizationModes
source§fn clone(&self) -> QuantizationModes
fn clone(&self) -> QuantizationModes
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 QuantizationModes
impl Debug for QuantizationModes
source§impl FromStr for QuantizationModes
impl FromStr for QuantizationModes
source§impl Hash for QuantizationModes
impl Hash for QuantizationModes
source§impl Ord for QuantizationModes
impl Ord for QuantizationModes
source§fn cmp(&self, other: &QuantizationModes) -> Ordering
fn cmp(&self, other: &QuantizationModes) -> 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 QuantizationModes
impl PartialEq for QuantizationModes
source§fn eq(&self, other: &QuantizationModes) -> bool
fn eq(&self, other: &QuantizationModes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QuantizationModes
impl PartialOrd for QuantizationModes
source§fn partial_cmp(&self, other: &QuantizationModes) -> Option<Ordering>
fn partial_cmp(&self, other: &QuantizationModes) -> 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 QuantizationModes
impl Eq for QuantizationModes
impl StructuralPartialEq for QuantizationModes
Auto Trait Implementations§
impl Freeze for QuantizationModes
impl RefUnwindSafe for QuantizationModes
impl Send for QuantizationModes
impl Sync for QuantizationModes
impl Unpin for QuantizationModes
impl UnwindSafe for QuantizationModes
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