pub struct TrackedRef<'a, S> { /* private fields */ }Expand description
A mutable reference to S with dirty tracking.
Like Tracked<S> but borrows instead of owning. Reading through
read() or Deref does not set the dirty flag;
writing through DerefMut does.
Implementations§
Trait Implementations§
Source§impl<S> Deref for TrackedRef<'_, S>
impl<S> Deref for TrackedRef<'_, S>
Auto Trait Implementations§
impl<'a, S> Freeze for TrackedRef<'a, S>
impl<'a, S> RefUnwindSafe for TrackedRef<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for TrackedRef<'a, S>where
S: Send,
impl<'a, S> Sync for TrackedRef<'a, S>where
S: Sync,
impl<'a, S> Unpin for TrackedRef<'a, S>
impl<'a, S> UnsafeUnpin for TrackedRef<'a, S>
impl<'a, S> !UnwindSafe for TrackedRef<'a, S>
Blanket Implementations§
Source§impl<T, V> AddTo<DataChildren<T>> for Vwhere
V: Into<T>,
impl<T, V> AddTo<DataChildren<T>> for Vwhere
V: Into<T>,
Source§type Handle<'a> = DataHandle
where
T: 'a
type Handle<'a> = DataHandle where T: 'a
Handle returned after adding. Supports
.key() / .width() chaining.Source§fn add_to(self, collector: &mut DataChildren<T>) -> DataHandle
fn add_to(self, collector: &mut DataChildren<T>) -> DataHandle
Add this value to the collector, returning a handle for chaining
.key() and .width().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> 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 more