Struct IterNames

pub struct IterNames<B: 'static> { /* private fields */ }

An iterator over flags values.

This iterator only yields flags values for contained, defined, named flags. Any remaining bits won't be yielded, but can be found with the IterNames::remaining method.

Implementations

impl<B: 'static> IterNames<B>

fn remaining(&self) -> &B

Get a flags value of any remaining bits that haven't been yielded yet.

Once the iterator has finished, this method can be used to check whether or not there are any bits that didn't correspond to a contained, defined, named flag remaining.

Trait Implementations

impl<B: Flags> Iterator for IterNames<B>

type Item = (&'static str, B);
fn next(&mut self) -> Option<Self::Item>

Auto Trait Implementations

impl<B> Freeze for IterNames<B> where &'static [Flag<B>]: Freeze, B: Freeze + Freeze,

impl<B> RefUnwindSafe for IterNames<B> where &'static [Flag<B>]: RefUnwindSafe, B: RefUnwindSafe + RefUnwindSafe,

impl<B> Send for IterNames<B> where &'static [Flag<B>]: Send, B: Send + Send,

impl<B> Sync for IterNames<B> where &'static [Flag<B>]: Sync, B: Sync + Sync,

impl<B> Unpin for IterNames<B> where &'static [Flag<B>]: Unpin, B: Unpin + Unpin,

impl<B> UnsafeUnpin for IterNames<B> where &'static [Flag<B>]: UnsafeUnpin, B: UnsafeUnpin + UnsafeUnpin,

impl<B> UnwindSafe for IterNames<B> where &'static [Flag<B>]: UnwindSafe, B: UnwindSafe + UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for IterNames<B> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for IterNames<B> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IterNames<B> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IterNames<B> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for IterNames<B>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for IterNames<B> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for IterNames<B> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for IterNames<B> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>