pub struct StorePath(/* private fields */);Expand description
The path of a field within some store.
Implementations§
Source§impl StorePath
impl StorePath
Sourcepub fn push(&mut self, segment: impl Into<StorePathSegment>)
pub fn push(&mut self, segment: impl Into<StorePathSegment>)
Adds a new segment to the path.
Sourcepub fn pop(&mut self) -> Option<StorePathSegment>
pub fn pop(&mut self) -> Option<StorePathSegment>
Removes a segment from the path and returns it.
Sourcepub fn replace_last(&mut self, segment: impl Into<StorePathSegment>)
pub fn replace_last(&mut self, segment: impl Into<StorePathSegment>)
Updates the last segment in the place in place.
Trait Implementations§
Source§impl From<Vec<StorePathSegment>> for StorePath
impl From<Vec<StorePathSegment>> for StorePath
Source§fn from(value: Vec<StorePathSegment>) -> Self
fn from(value: Vec<StorePathSegment>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<StorePathSegment> for StorePath
impl FromIterator<StorePathSegment> for StorePath
Source§fn from_iter<T: IntoIterator<Item = StorePathSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = StorePathSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl IntoIterator for StorePath
impl IntoIterator for StorePath
impl Eq for StorePath
impl StructuralPartialEq for StorePath
Auto Trait Implementations§
impl Freeze for StorePath
impl RefUnwindSafe for StorePath
impl Send for StorePath
impl Sync for StorePath
impl Unpin for StorePath
impl UnwindSafe for StorePath
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,
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.