pub struct ResolvablePath { /* private fields */ }Expand description
A resolvable path.
Implementations§
Source§impl ResolvablePath
impl ResolvablePath
Sourcepub fn append(self, element: PathElement) -> Self
pub fn append(self, element: PathElement) -> Self
Appends a PathElement.
Sourcepub fn append_all(self, path: ResolvablePath) -> Self
pub fn append_all(self, path: ResolvablePath) -> Self
Appends all given ResolvablePath elements.
Sourcepub fn merge(&self) -> Self
pub fn merge(&self) -> Self
Merges all path elements into a new ResolvablePath.
Sourcepub fn last(&self) -> &PathElement
pub fn last(&self) -> &PathElement
Returns the last element in the path.
Trait Implementations§
Source§impl Clone for ResolvablePath
impl Clone for ResolvablePath
Source§fn clone(&self) -> ResolvablePath
fn clone(&self) -> ResolvablePath
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvablePath
impl Debug for ResolvablePath
Source§impl Default for ResolvablePath
impl Default for ResolvablePath
Source§fn default() -> ResolvablePath
fn default() -> ResolvablePath
Returns the “default value” for a type. Read more
Source§impl From<&Path> for ResolvablePath
impl From<&Path> for ResolvablePath
Source§impl From<&ResolvablePath> for PathBuf
impl From<&ResolvablePath> for PathBuf
Source§fn from(value: &ResolvablePath) -> Self
fn from(value: &ResolvablePath) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolvablePath
impl RefUnwindSafe for ResolvablePath
impl Send for ResolvablePath
impl Sync for ResolvablePath
impl Unpin for ResolvablePath
impl UnwindSafe for ResolvablePath
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)