#[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: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)