pub struct Path { /* private fields */ }Expand description
A qualified test path, including scope names.
Implementations§
Source§impl Path
impl Path
Sourcepub fn components(&self) -> Iter<'_, SharedString> ⓘ
pub fn components(&self) -> Iter<'_, SharedString> ⓘ
Returns a reference to the components in the path.
Sourcepub fn component_strs(
&self,
) -> Map<Iter<'_, SharedString>, fn(&'_ SharedString) -> &'_ str> ⓘ
pub fn component_strs( &self, ) -> Map<Iter<'_, SharedString>, fn(&'_ SharedString) -> &'_ str> ⓘ
Returns an iterator over the component string slices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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