pub struct FsPath { /* private fields */ }Expand description
Provider-local filesystem path.
Implementations§
Source§impl FsPath
impl FsPath
Sourcepub fn is_absolute(&self) -> bool
pub fn is_absolute(&self) -> bool
Sourcepub fn parent(&self) -> Option<Self>
pub fn parent(&self) -> Option<Self>
Gets this path’s parent.
§Returns
Some parent path when the path has one, or None for root and
parentless relative paths.
Sourcepub fn file_extension(&self) -> Option<&str>
pub fn file_extension(&self) -> Option<&str>
Gets the final path component extension.
§Returns
Some extension without the dot when the final path component has a
non-empty extension, or None for root, extensionless names, hidden
names such as .profile, and names ending with a dot.
Trait Implementations§
Source§impl Ord for FsPath
impl Ord for FsPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FsPath
impl PartialOrd for FsPath
impl Eq for FsPath
impl StructuralPartialEq for FsPath
Auto Trait Implementations§
impl Freeze for FsPath
impl RefUnwindSafe for FsPath
impl Send for FsPath
impl Sync for FsPath
impl Unpin for FsPath
impl UnsafeUnpin for FsPath
impl UnwindSafe for FsPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.