#[repr(transparent)]pub struct RawConst<T: IntRepr, U>(pub T::Primitive, _);Expand description
Wrapper for a raw value of a MySql constant, enum variant or flags value.
T– specifies the raw value,U– specifies the parsed value.
Tuple Fields§
§0: T::PrimitiveImplementations§
Trait Implementations§
Source§impl<'de, T: IntRepr, U> MyDeserialize<'de> for RawConst<T, U>
impl<'de, T: IntRepr, U> MyDeserialize<'de> for RawConst<T, U>
Source§impl<T: IntRepr, U> MySerialize for RawConst<T, U>
impl<T: IntRepr, U> MySerialize for RawConst<T, U>
Source§impl<T: Ord + IntRepr, U: Ord> Ord for RawConst<T, U>
impl<T: Ord + IntRepr, U: Ord> Ord for RawConst<T, U>
1.21.0 · 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
Source§impl<T: PartialOrd + IntRepr, U: PartialOrd> PartialOrd for RawConst<T, U>where
T::Primitive: PartialOrd,
impl<T: PartialOrd + IntRepr, U: PartialOrd> PartialOrd for RawConst<T, U>where
T::Primitive: PartialOrd,
impl<T: Copy + IntRepr, U: Copy> Copy for RawConst<T, U>
impl<T: Eq + IntRepr, U: Eq> Eq for RawConst<T, U>
impl<T: IntRepr, U> StructuralPartialEq for RawConst<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for RawConst<T, U>
impl<T, U> RefUnwindSafe for RawConst<T, U>
impl<T, U> Send for RawConst<T, U>
impl<T, U> Sync for RawConst<T, U>
impl<T, U> Unpin for RawConst<T, U>
impl<T, U> UnwindSafe for RawConst<T, U>
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