#[repr(transparent)]pub struct RawInt<T: IntRepr>(pub T::Primitive, _);Expand description
Wrapper for an integer, that defines serialization and deserialization.
Tuple Fields§
§0: T::PrimitiveImplementations§
Trait Implementations§
Source§impl<'de, T: IntRepr> MyDeserialize<'de> for RawInt<T>
impl<'de, T: IntRepr> MyDeserialize<'de> for RawInt<T>
Source§impl<T: IntRepr> MySerialize for RawInt<T>
impl<T: IntRepr> MySerialize for RawInt<T>
Source§impl<T: Ord + IntRepr> Ord for RawInt<T>
impl<T: Ord + IntRepr> Ord for RawInt<T>
Source§impl<T: PartialOrd + IntRepr> PartialOrd for RawInt<T>where
T::Primitive: PartialOrd,
impl<T: PartialOrd + IntRepr> PartialOrd for RawInt<T>where
T::Primitive: PartialOrd,
impl<T: Copy + IntRepr> Copy for RawInt<T>
impl<T: Eq + IntRepr> Eq for RawInt<T>
impl<T: IntRepr> StructuralPartialEq for RawInt<T>
Auto Trait Implementations§
impl<T> Freeze for RawInt<T>
impl<T> RefUnwindSafe for RawInt<T>
impl<T> Send for RawInt<T>
impl<T> Sync for RawInt<T>
impl<T> Unpin for RawInt<T>
impl<T> UnwindSafe for RawInt<T>
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