Struct stepflow_data::StateDataFiltered [−][src]
Wrapper to a StateData
that provides a filtered view of the data contained
Implementations
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,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
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>,