pub struct Even<T>(/* private fields */);Expand description
Implementations§
Source§impl<T> Even<T>
impl<T> Even<T>
Sourcepub const unsafe fn new_unchecked(value: T) -> Self
pub const unsafe fn new_unchecked(value: T) -> Self
§Safety
value must be even.
Trait Implementations§
impl<T: Copy> Copy for Even<T>
impl<T: Eq> Eq for Even<T>
impl<T: PartialEq> StructuralPartialEq for Even<T>
Source§impl TryFrom<i8> for Even<i8>
impl TryFrom<i8> for Even<i8>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<i16> for Even<i16>
impl TryFrom<i16> for Even<i16>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<i32> for Even<i32>
impl TryFrom<i32> for Even<i32>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<i64> for Even<i64>
impl TryFrom<i64> for Even<i64>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<i128> for Even<i128>
impl TryFrom<i128> for Even<i128>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<isize> for Even<isize>
impl TryFrom<isize> for Even<isize>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for Even<u8>
impl TryFrom<u8> for Even<u8>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<u16> for Even<u16>
impl TryFrom<u16> for Even<u16>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for Even<u32>
impl TryFrom<u32> for Even<u32>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Source§impl TryFrom<u64> for Even<u64>
impl TryFrom<u64> for Even<u64>
Source§type Error = TypestateError
type Error = TypestateError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<T> Freeze for Even<T>where
T: Freeze,
impl<T> RefUnwindSafe for Even<T>where
T: RefUnwindSafe,
impl<T> Send for Even<T>where
T: Send,
impl<T> Sync for Even<T>where
T: Sync,
impl<T> Unpin for Even<T>where
T: Unpin,
impl<T> UnsafeUnpin for Even<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Even<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