#[repr(u8)]pub enum Saturateat16bit {
DO_NOT_SATURATE = 0,
SATURATE = 1,
}Variants§
DO_NOT_SATURATE = 0
Results roll over if out range and do not saturate.
SATURATE = 1
If the result overflows, it saturates at 0xFFFF for positive overflow and 0x8000 for negative overflow.
Implementations§
Trait Implementations§
Source§impl Clone for Saturateat16bit
impl Clone for Saturateat16bit
Source§fn clone(&self) -> Saturateat16bit
fn clone(&self) -> Saturateat16bit
Returns a duplicate 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 Saturateat16bit
impl Debug for Saturateat16bit
Source§impl From<Saturateat16bit> for u8
impl From<Saturateat16bit> for u8
Source§fn from(val: Saturateat16bit) -> u8
fn from(val: Saturateat16bit) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Saturateat16bit
impl From<u8> for Saturateat16bit
Source§fn from(val: u8) -> Saturateat16bit
fn from(val: u8) -> Saturateat16bit
Converts to this type from the input type.
Source§impl Ord for Saturateat16bit
impl Ord for Saturateat16bit
Source§fn cmp(&self, other: &Saturateat16bit) -> Ordering
fn cmp(&self, other: &Saturateat16bit) -> 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 Saturateat16bit
impl PartialEq for Saturateat16bit
Source§impl PartialOrd for Saturateat16bit
impl PartialOrd for Saturateat16bit
impl Copy for Saturateat16bit
impl Eq for Saturateat16bit
impl StructuralPartialEq for Saturateat16bit
Auto Trait Implementations§
impl Freeze for Saturateat16bit
impl RefUnwindSafe for Saturateat16bit
impl Send for Saturateat16bit
impl Sync for Saturateat16bit
impl Unpin for Saturateat16bit
impl UnwindSafe for Saturateat16bit
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