pub struct MaterializationTracker<K>{ /* private fields */ }Expand description
Multi-arrangement tracker keyed by arrangement name.
Implementations§
Source§impl<K> MaterializationTracker<K>
impl<K> MaterializationTracker<K>
Sourcepub fn register(
&mut self,
name: impl Into<String>,
) -> Result<(), ArrangementAlreadyTracked>
pub fn register( &mut self, name: impl Into<String>, ) -> Result<(), ArrangementAlreadyTracked>
Registers a fresh arrangement, returning an error if name is taken.
Sourcepub fn arrangement_mut(
&mut self,
name: &str,
) -> Option<&mut MaterializedKeys<K>>
pub fn arrangement_mut( &mut self, name: &str, ) -> Option<&mut MaterializedKeys<K>>
Returns a mutable view of an arrangement’s tracker.
Sourcepub fn arrangement(&self, name: &str) -> Option<&MaterializedKeys<K>>
pub fn arrangement(&self, name: &str) -> Option<&MaterializedKeys<K>>
Returns an immutable view of an arrangement’s tracker.
Sourcepub fn forget_arrangement(&mut self, name: &str) -> Option<MaterializedKeys<K>>
pub fn forget_arrangement(&mut self, name: &str) -> Option<MaterializedKeys<K>>
Drops name from the tracker.
Trait Implementations§
Source§impl<K> Clone for MaterializationTracker<K>
impl<K> Clone for MaterializationTracker<K>
Source§fn clone(&self) -> MaterializationTracker<K>
fn clone(&self) -> MaterializationTracker<K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K> Debug for MaterializationTracker<K>
impl<K> Debug for MaterializationTracker<K>
Auto Trait Implementations§
impl<K> Freeze for MaterializationTracker<K>
impl<K> RefUnwindSafe for MaterializationTracker<K>where
K: RefUnwindSafe,
impl<K> Send for MaterializationTracker<K>where
K: Send,
impl<K> Sync for MaterializationTracker<K>where
K: Sync,
impl<K> Unpin for MaterializationTracker<K>
impl<K> UnsafeUnpin for MaterializationTracker<K>
impl<K> UnwindSafe for MaterializationTracker<K>where
K: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Data for Twhere
T: Clone + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.