pub struct Path_owned_type(/* private fields */);
Implementations§
Source§impl Path_owned_type
impl Path_owned_type
Sourcepub unsafe fn New_unchecked(Path: String) -> Self
pub unsafe fn New_unchecked(Path: String) -> Self
§Safety
The caller must ensure that the string is valid path string.
pub fn New(Path: String) -> Option<Self>
pub fn Root() -> Path_owned_type
pub fn Join(self, Path: impl AsRef<Path_type>) -> Option<Self>
pub fn Append(self, Path: &str) -> Option<Self>
pub fn Revert_parent_directory(&mut self) -> &mut Self
pub fn Get_extension(&self) -> Option<&str>
pub fn Get_file_name(&self) -> &str
pub fn Get_relative_to(&self, Path: &Path_owned_type) -> Option<Path_owned_type>
pub fn Canonicalize(self) -> Self
Methods from Deref<Target = Path_type>§
pub const Root: &'static Path_type = _
pub const Empty: &'static Path_type = _
pub const System: &'static Path_type = _
pub const Devices: &'static Path_type = _
pub const Configuration: &'static Path_type = _
pub const Data: &'static Path_type = _
pub const Binaries: &'static Path_type = _
pub const Users: &'static Path_type = _
pub const Temporary: &'static Path_type = _
pub const Logs: &'static Path_type = _
pub fn Is_valid(&self) -> bool
pub fn Is_absolute(&self) -> bool
pub fn Is_root(&self) -> bool
pub fn Is_empty(&self) -> bool
pub fn Is_canonical(&self) -> bool
pub fn Go_parent(&self) -> Option<&Path_type>
pub fn Get_file_prefix(&self) -> Option<&str>
pub fn Get_file_name(&self) -> Option<&str>
pub fn Get_extension(&self) -> Option<&str>
pub fn Set_extension(&self, Extension: &str) -> Option<Path_owned_type>
pub fn Strip_prefix<'b>( &'b self, Path_prefix: &Path_type, ) -> Option<&'b Path_type>
pub fn Strip_prefix_absolute<'b>( &'b self, Path_prefix: &Path_type, ) -> Option<&'b Path_type>
pub fn Strip_suffix<'b>( &'b self, Path_suffix: &Path_type, ) -> Option<&'b Path_type>
pub fn Get_components(&self) -> Components_type<'_> ⓘ
pub fn Join(&self, Path: &Path_type) -> Option<Path_owned_type>
pub fn Append(&self, Path: &str) -> Option<Path_owned_type>
pub fn Get_length(&self) -> usize
pub fn As_str(&self) -> &str
Trait Implementations§
Source§impl AsRef<Path_type> for Path_owned_type
impl AsRef<Path_type> for Path_owned_type
Source§impl AsRef<str> for Path_owned_type
impl AsRef<str> for Path_owned_type
Source§impl Borrow<Path_type> for Path_owned_type
impl Borrow<Path_type> for Path_owned_type
Source§impl Clone for Path_owned_type
impl Clone for Path_owned_type
Source§fn clone(&self) -> Path_owned_type
fn clone(&self) -> Path_owned_type
Returns a copy of the value. Read more
1.0.0 · 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 Path_owned_type
impl Debug for Path_owned_type
Source§impl Deref for Path_owned_type
impl Deref for Path_owned_type
Source§impl Display for Path_owned_type
impl Display for Path_owned_type
Source§impl Hash for Path_owned_type
impl Hash for Path_owned_type
Source§impl PartialEq for Path_owned_type
impl PartialEq for Path_owned_type
Source§impl TryFrom<&str> for Path_owned_type
impl TryFrom<&str> for Path_owned_type
Source§impl TryFrom<String> for Path_owned_type
impl TryFrom<String> for Path_owned_type
impl Eq for Path_owned_type
impl StructuralPartialEq for Path_owned_type
Auto Trait Implementations§
impl Freeze for Path_owned_type
impl RefUnwindSafe for Path_owned_type
impl Send for Path_owned_type
impl Sync for Path_owned_type
impl Unpin for Path_owned_type
impl UnwindSafe for Path_owned_type
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