[][src]Struct neli::types::FlagBuffer

pub struct FlagBuffer<T>(_);

A buffer of flag constants.

Implementations

impl<T> FlagBuffer<T> where
    T: PartialEq + Clone
[src]

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>

Notable traits for Iter<'a, T>

impl<'a, T> Iterator for Iter<'a, T> type Item = &'a 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]

impl<T: PartialEq> PartialEq<FlagBuffer<T>> for FlagBuffer<T>[src]

impl<T> StructuralPartialEq for FlagBuffer<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for FlagBuffer<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for FlagBuffer<T> where
    T: Send
[src]

impl<T> Sync for FlagBuffer<T> where
    T: Sync
[src]

impl<T> Unpin for FlagBuffer<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for FlagBuffer<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.