pub struct RustdvPath { /* private fields */ }Implementations§
Source§impl RustdvPath
impl RustdvPath
Sourcepub fn root(name: &str) -> RustdvPath
pub fn root(name: &str) -> RustdvPath
The root of a tree — the test’s registered name (D49).
Sourcepub fn empty() -> RustdvPath
pub fn empty() -> RustdvPath
An empty path, for contexts with no position (a free #[rustdv::test]
function, which has no component tree).
Sourcepub fn child(&self, name: &str) -> RustdvPath
pub fn child(&self, name: &str) -> RustdvPath
This path extended by one segment — how the walk descends (D9).
pub fn segments(&self) -> &[String]
pub fn is_empty(&self) -> bool
Sourcepub fn is_under(&self, prefix: &RustdvPath) -> bool
pub fn is_under(&self, prefix: &RustdvPath) -> bool
Is this path at or below prefix? Segment-wise, so a.b is under a
and ab is not — without the string special-case D64 needed.
Trait Implementations§
Source§impl Clone for RustdvPath
impl Clone for RustdvPath
Source§fn clone(&self) -> RustdvPath
fn clone(&self) -> RustdvPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustdvPath
impl Debug for RustdvPath
Source§impl Default for RustdvPath
impl Default for RustdvPath
Source§fn default() -> RustdvPath
fn default() -> RustdvPath
Returns the “default value” for a type. Read more
Source§impl Display for RustdvPath
impl Display for RustdvPath
impl Eq for RustdvPath
Source§impl PartialEq for RustdvPath
impl PartialEq for RustdvPath
impl StructuralPartialEq for RustdvPath
Auto Trait Implementations§
impl Freeze for RustdvPath
impl RefUnwindSafe for RustdvPath
impl Send for RustdvPath
impl Sync for RustdvPath
impl Unpin for RustdvPath
impl UnsafeUnpin for RustdvPath
impl UnwindSafe for RustdvPath
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