Struct stepflow_base::ObjectStoreFiltered [−][src]
Wrapper to an ObjectStore
that provides a filtered view of the objects contained
Implementations
impl<'os, T, TID> ObjectStoreFiltered<'os, T, TID> where
T: ObjectStoreContent + ObjectStoreContent<IdType = TID>,
TID: Eq + Hash + Clone + 'static,
[src]
T: ObjectStoreContent + ObjectStoreContent<IdType = TID>,
TID: Eq + Hash + Clone + 'static,
pub fn new(
object_store: &'os ObjectStore<T, TID>,
allowed_ids: HashSet<TID>
) -> Self
[src]
object_store: &'os ObjectStore<T, TID>,
allowed_ids: HashSet<TID>
) -> Self
Wrap the object_store
with a filtered view. Only IDs specified in allowed_ids
are visible.
pub fn id_from_name(&self, name: &str) -> Option<&TID>
[src]
pub fn name_from_id(&self, id: &TID) -> Option<&str>
[src]
pub fn get_by_name(&self, name: &str) -> Option<&T>
[src]
pub fn get(&self, id: &TID) -> Option<&T>
[src]
Auto Trait Implementations
impl<'os, T, TID> RefUnwindSafe for ObjectStoreFiltered<'os, T, TID> where
T: RefUnwindSafe,
TID: RefUnwindSafe,
T: RefUnwindSafe,
TID: RefUnwindSafe,
impl<'os, T, TID> Send for ObjectStoreFiltered<'os, T, TID> where
T: Sync,
TID: Send + Sync,
T: Sync,
TID: Send + Sync,
impl<'os, T, TID> Sync for ObjectStoreFiltered<'os, T, TID> where
T: Sync,
TID: Sync,
T: Sync,
TID: Sync,
impl<'os, T, TID> Unpin for ObjectStoreFiltered<'os, T, TID> where
TID: Unpin,
TID: Unpin,
impl<'os, T, TID> UnwindSafe for ObjectStoreFiltered<'os, T, TID> where
T: RefUnwindSafe,
TID: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe,
TID: RefUnwindSafe + UnwindSafe,
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>,