pub struct RdPath { /* private fields */ }Expand description
A human-oriented structural path through a producer’s Rd object tree.
The fmt::Display representation is intended for diagnostics, not as a
machine-readable protocol.
Implementations§
Source§impl RdPath
impl RdPath
pub fn new(segments: Vec<RdPathSegment>) -> Self
pub fn segments(&self) -> &[RdPathSegment]
pub fn with_child(&self, index: usize) -> RdPath
pub fn with_option(&self) -> RdPath
Trait Implementations§
impl Eq for RdPath
Source§impl From<Vec<RdPathSegment>> for RdPath
impl From<Vec<RdPathSegment>> for RdPath
Source§fn from(segments: Vec<RdPathSegment>) -> Self
fn from(segments: Vec<RdPathSegment>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RdPath
Auto Trait Implementations§
impl Freeze for RdPath
impl RefUnwindSafe for RdPath
impl Send for RdPath
impl Sync for RdPath
impl Unpin for RdPath
impl UnsafeUnpin for RdPath
impl UnwindSafe for RdPath
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