Enum Comparator
#[repr(u8)]pub enum Comparator {
ABOVE = 0,
BELOW = 1,
}
Variants§
Implementations§
§impl Comparator
impl Comparator
pub const fn from_bits(val: u8) -> Comparator
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Comparator
impl Clone for Comparator
§fn clone(&self) -> Comparator
fn clone(&self) -> Comparator
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 more§impl From<u8> for Comparator
impl From<u8> for Comparator
§fn from(val: u8) -> Comparator
fn from(val: u8) -> Comparator
Converts to this type from the input type.
§impl Ord for Comparator
impl Ord for Comparator
§impl PartialEq for Comparator
impl PartialEq for Comparator
§impl PartialOrd for Comparator
impl PartialOrd for Comparator
impl Copy for Comparator
impl Eq for Comparator
impl StructuralPartialEq for Comparator
Auto Trait Implementations§
impl Freeze for Comparator
impl RefUnwindSafe for Comparator
impl Send for Comparator
impl Sync for Comparator
impl Unpin for Comparator
impl UnwindSafe for Comparator
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
)