[−][src]Struct neli::types::FlagBuffer
A buffer of flag constants.
Implementations
impl<T> FlagBuffer<T> where
T: PartialEq + Clone,
[src]
T: PartialEq + Clone,
pub fn empty() -> Self
[src]
Check whether the set of flags is empty.
pub fn contains(&self, elem: &T) -> bool
[src]
Check whether the set of flags contains the given flag.
pub fn set(&mut self, flag: T)
[src]
Add a flag to the set of flags.
pub fn unset(&mut self, flag: &T)
[src]
Remove a flag from the set of flags.
pub fn iter(&self) -> Iter<'_, T>ⓘ
[src]
Return an iterator over the immutable contents of the buffer.
Trait Implementations
impl<T: Debug> Debug for FlagBuffer<T>
[src]
impl<'a, T> From<&'a [T]> for FlagBuffer<T> where
T: Clone,
[src]
T: Clone,
impl<T: PartialEq> PartialEq<FlagBuffer<T>> for FlagBuffer<T>
[src]
pub fn eq(&self, other: &FlagBuffer<T>) -> bool
[src]
pub fn ne(&self, other: &FlagBuffer<T>) -> bool
[src]
impl<T> StructuralPartialEq for FlagBuffer<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for FlagBuffer<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for FlagBuffer<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for FlagBuffer<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for FlagBuffer<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for FlagBuffer<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,