pub struct UpdateCallbackData {
pub callback: ObserverCallback,
pub path: Vec<ValueContainer>,
}Expand description
The local observer callback hold the callback and the path of the value if referenced by a shared container
Fields§
§callback: ObserverCallback§path: Vec<ValueContainer>Implementations§
Source§impl UpdateCallbackData
impl UpdateCallbackData
Sourcepub fn with_child_path(&self, child_key: impl Into<ValueContainer>) -> Self
pub fn with_child_path(&self, child_key: impl Into<ValueContainer>) -> Self
Creates a new UpdateCallbackData with the same callback, appending the provided child_key to the path.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateCallbackData
impl !Send for UpdateCallbackData
impl !Sync for UpdateCallbackData
impl !UnwindSafe for UpdateCallbackData
impl Forget for UpdateCallbackData
impl Freeze for UpdateCallbackData
impl Move for UpdateCallbackData
impl Unpin for UpdateCallbackData
impl UnsafeUnpin for UpdateCallbackData
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> 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<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type