#[repr(transparent)]pub struct RawFlags<T: Flags, U>(pub T::Bits, _);Expand description
Wrapper for raw flags value.
Deserialization of this type won’t lead to an error if value contains unknown flags.
Tuple Fields§
§0: T::BitsImplementations§
Trait Implementations§
Source§impl<'de, T: Flags, U> MyDeserialize<'de> for RawFlags<T, U>
impl<'de, T: Flags, U> MyDeserialize<'de> for RawFlags<T, U>
Source§impl<T: Flags, U> MySerialize for RawFlags<T, U>
impl<T: Flags, U> MySerialize for RawFlags<T, U>
Source§impl<T: Ord + Flags, U: Ord> Ord for RawFlags<T, U>
impl<T: Ord + Flags, U: Ord> Ord for RawFlags<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 + Flags, U: PartialOrd> PartialOrd for RawFlags<T, U>where
T::Bits: PartialOrd,
impl<T: PartialOrd + Flags, U: PartialOrd> PartialOrd for RawFlags<T, U>where
T::Bits: PartialOrd,
impl<T: Copy + Flags, U: Copy> Copy for RawFlags<T, U>
impl<T: Eq + Flags, U: Eq> Eq for RawFlags<T, U>
impl<T: Flags, U> StructuralPartialEq for RawFlags<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for RawFlags<T, U>
impl<T, U> RefUnwindSafe for RawFlags<T, U>
impl<T, U> Send for RawFlags<T, U>
impl<T, U> Sync for RawFlags<T, U>
impl<T, U> Unpin for RawFlags<T, U>
impl<T, U> UnwindSafe for RawFlags<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