pub struct Path { /* private fields */ }
Implementations§
Source§impl Path
impl Path
pub fn make_absolute(string: &str) -> Result<Self, Error>
pub fn bin(&self) -> Result<Vec<u8>, Error>
pub fn is_absolute(&self) -> bool
pub fn cat(&self, path: &Path) -> Result<Self, Error>
pub fn parent(&self) -> Option<Path>
pub fn last_segment(&self) -> Option<String>
pub fn to_relative(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Path
impl<'de> Deserialize<'de> for Path
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<ResourcePathSegment> for Path
impl Into<ResourcePathSegment> for Path
Source§fn into(self) -> ResourcePathSegment
fn into(self) -> ResourcePathSegment
Converts this type into the (usually inferred) input type.
impl Eq for Path
impl StructuralPartialEq for Path
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