pub struct FlagsType { /* private fields */ }Expand description
A type that denotes a set of named bitflags.
Implementations§
Source§impl FlagsType
impl FlagsType
Sourcepub fn new<S: Into<Arc<str>>>(
name: Option<TypeIdentifier>,
names: impl IntoIterator<Item = S>,
) -> Result<Self>
pub fn new<S: Into<Arc<str>>>( name: Option<TypeIdentifier>, names: impl IntoIterator<Item = S>, ) -> Result<Self>
Creates a new flags type with the specified list of names. The names must be unique.
Sourcepub fn name(&self) -> Option<&TypeIdentifier>
pub fn name(&self) -> Option<&TypeIdentifier>
Gets the name of this type, if any.
Sourcepub fn names(&self) -> impl ExactSizeIterator<Item = &str>
pub fn names(&self) -> impl ExactSizeIterator<Item = &str>
Gets an iterator over the names of the flags in this collection.
Trait Implementations§
impl Eq for FlagsType
Auto Trait Implementations§
impl Freeze for FlagsType
impl RefUnwindSafe for FlagsType
impl Send for FlagsType
impl Sync for FlagsType
impl Unpin for FlagsType
impl UnwindSafe for FlagsType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.