pub struct Odd<T>(/* private fields */);Expand description
Proof that a value is odd.
A bare typestate: it carries the proof but has no consuming op in this
crate. It ships here because that is where its predicate (Parity) lives.
Note that Odd also implies non-zero — zero is even — so it doubles as a
“non-zero and odd” proof without a separate OddNonZero type.
Implementations§
Trait Implementations§
impl<T> Copy for Odd<T>where
T: Copy,
impl<T> Eq for Odd<T>where
T: Eq,
impl<T> StructuralPartialEq for Odd<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Odd<T>where
T: Freeze,
impl<T> RefUnwindSafe for Odd<T>where
T: RefUnwindSafe,
impl<T> Send for Odd<T>where
T: Send,
impl<T> Sync for Odd<T>where
T: Sync,
impl<T> Unpin for Odd<T>where
T: Unpin,
impl<T> UnsafeUnpin for Odd<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Odd<T>where
T: UnwindSafe,
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