Struct stepflow_data::StateDataFiltered[][src]

pub struct StateDataFiltered<'sd> { /* fields omitted */ }

Wrapper to a StateData that provides a filtered view of the data contained


impl<'sd> StateDataFiltered<'sd>[src]

pub fn new(state_data: &'sd StateData, allowed_var_ids: HashSet<VarId>) -> Self[src]

Wrap the state_data with a filtered view. Only IDs specified in allowed_var_ids are visible.

pub fn get(&self, var_id: &VarId) -> Option<&ValidVal>[src]

pub fn contains(&self, var_id: &VarId) -> bool[src]

Auto Trait Implementations

impl<'sd> !RefUnwindSafe for StateDataFiltered<'sd>

impl<'sd> Send for StateDataFiltered<'sd>

impl<'sd> Sync for StateDataFiltered<'sd>

impl<'sd> Unpin for StateDataFiltered<'sd>

impl<'sd> !UnwindSafe for StateDataFiltered<'sd>

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.