pub enum OwnedPath {
Root,
Seq {
parent: Box<OwnedPath>,
index: usize,
borrowed: OnceCell<Path<'static>>,
},
Map {
parent: Box<OwnedPath>,
key: String,
borrowed: OnceCell<Path<'static>>,
},
Alias {
parent: Box<OwnedPath>,
borrowed: OnceCell<Path<'static>>,
},
Unknown {
parent: Box<OwnedPath>,
borrowed: OnceCell<Path<'static>>,
},
}Expand description
An owned version of a Path.
Variants§
Root
The root of the input.
Seq
A sequence index.
Fields
Map
A map key.
Fields
Alias
An alias.
Fields
Unknown
An unknown path.
Implementations§
Auto Trait Implementations§
impl !Freeze for OwnedPath
impl !RefUnwindSafe for OwnedPath
impl Send for OwnedPath
impl !Sync for OwnedPath
impl Unpin for OwnedPath
impl UnsafeUnpin for OwnedPath
impl UnwindSafe for OwnedPath
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