#[repr(transparent)]pub struct Path<T: ?Sized, const S: char>(pub T);
Expand description
Path with named keys separated by a separator char
The path will either be empty or start with the separator.
path: T
: AWrite
to write the separators and node names into duringTranscode
. See also TreeKey::traverse_all() andMetadata::max_length()
for upper bounds on path length. Can also be aAsRef<str>
to implementIntoKeys
(seeKeysIter
).const S: char
: The path hierarchy separator to be inserted before each name, e.g.'/'
.
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
Source§impl<'de, T, const S: char> Deserialize<'de> for Path<T, S>where
T: Deserialize<'de> + ?Sized,
impl<'de, T, const S: char> Deserialize<'de> for Path<T, S>where
T: Deserialize<'de> + ?Sized,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Ord + ?Sized, const S: char> Ord for Path<T, S>
impl<T: Ord + ?Sized, const S: char> Ord for Path<T, S>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ?Sized, const S: char> PartialOrd for Path<T, S>
impl<T: PartialOrd + ?Sized, const S: char> PartialOrd for Path<T, S>
impl<T: Copy + ?Sized, const S: char> Copy for Path<T, S>
impl<T: Eq + ?Sized, const S: char> Eq for Path<T, S>
impl<T: ?Sized, const S: char> StructuralPartialEq for Path<T, S>
Auto Trait Implementations§
impl<T, const S: char> Freeze for Path<T, S>
impl<T, const S: char> RefUnwindSafe for Path<T, S>where
T: RefUnwindSafe + ?Sized,
impl<T, const S: char> Send for Path<T, S>
impl<T, const S: char> Sync for Path<T, S>
impl<T, const S: char> Unpin for Path<T, S>
impl<T, const S: char> UnwindSafe for Path<T, S>where
T: UnwindSafe + ?Sized,
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