pub struct Flags<F: Flag>(/* private fields */);
Implementations§
source§impl<F: Flag> Flags<F>
impl<F: Flag> Flags<F>
pub const fn from_raw(raw: u64) -> Self
pub fn new() -> Self
pub fn select(self, flags: Flags<F>) -> Flags<F>
pub fn has(self, flag: F) -> bool
pub fn has_any(self, flags: Flags<F>) -> bool
pub fn has_all(self, flags: Flags<F>) -> bool
pub fn set(&mut self, flag: F) -> &mut Self
pub fn set_all(&mut self, flags: Flags<F>) -> &mut Self
Trait Implementations§
source§impl<F: Flag> BitOrAssign<F> for Flags<F>
impl<F: Flag> BitOrAssign<F> for Flags<F>
source§fn bitor_assign(&mut self, rhs: F)
fn bitor_assign(&mut self, rhs: F)
Performs the
|=
operation. Read moresource§impl<F: Flag> BitOrAssign for Flags<F>
impl<F: Flag> BitOrAssign for Flags<F>
source§fn bitor_assign(&mut self, rhs: Flags<F>)
fn bitor_assign(&mut self, rhs: Flags<F>)
Performs the
|=
operation. Read moresource§impl<F: PartialEq + Flag> PartialEq for Flags<F>
impl<F: PartialEq + Flag> PartialEq for Flags<F>
impl<F: Copy + Flag> Copy for Flags<F>
impl<F: Eq + Flag> Eq for Flags<F>
impl<F: Flag> StructuralEq for Flags<F>
impl<F: Flag> StructuralPartialEq for Flags<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for Flags<F>where
F: RefUnwindSafe,
impl<F> Send for Flags<F>where
F: Send,
impl<F> Sync for Flags<F>where
F: Sync,
impl<F> Unpin for Flags<F>where
F: Unpin,
impl<F> UnwindSafe for Flags<F>where
F: 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