Struct bitflags::example_generated::Field0
source · [−]#[repr(transparent)]pub struct Field0 { /* private fields */ }
Implementations
sourceimpl Field0
impl Field0
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn bits(&self) -> u32
pub fn bits_mut(&mut self) -> &mut u32
pub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_retain(bits: u32) -> Self
pub fn from_name(name: &str) -> Option<Self>
pub const fn iter(&self) -> IterⓘNotable traits for Iterimpl Iterator for Iter type Item = Flags;
pub const fn iter_names(&self) -> IterRawⓘNotable traits for IterRawimpl Iterator for IterRaw type Item = (&'static str, Flags);
pub const fn is_empty(&self) -> bool
pub const fn is_all(&self) -> bool
pub const fn intersects(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
pub fn set(&mut self, other: Self, value: bool)
pub const fn intersection(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
Trait Implementations
sourceimpl Ord for Field0
impl Ord for Field0
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Field0> for Field0
impl PartialOrd<Field0> for Field0
sourcefn partial_cmp(&self, other: &Field0) -> Option<Ordering>
fn partial_cmp(&self, other: &Field0) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Field0
impl Eq for Field0
impl StructuralEq for Field0
impl StructuralPartialEq for Field0
Auto Trait Implementations
impl RefUnwindSafe for Field0
impl Send for Field0
impl Sync for Field0
impl Unpin for Field0
impl UnwindSafe for Field0
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more