pub struct Lit(pub u32);Expand description
A literal: 2·var for the positive one, 2·var + 1 for the negative.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for Lit
impl Eq for Lit
Source§impl Ord for Lit
impl Ord for Lit
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Lit
impl PartialOrd for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl Forget for Lit
impl Freeze for Lit
impl Move for Lit
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnsafeUnpin for Lit
impl UnwindSafe for Lit
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