pub struct AbsolutePathBuf(pub String);Expand description
A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).
IMPORTANT: When deserializing an AbsolutePathBuf, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for AbsolutePathBuf
impl Clone for AbsolutePathBuf
Source§fn clone(&self) -> AbsolutePathBuf
fn clone(&self) -> AbsolutePathBuf
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbsolutePathBuf
impl Debug for AbsolutePathBuf
Source§impl Default for AbsolutePathBuf
impl Default for AbsolutePathBuf
Source§fn default() -> AbsolutePathBuf
fn default() -> AbsolutePathBuf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbsolutePathBuf
impl<'de> Deserialize<'de> for AbsolutePathBuf
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 Hash for AbsolutePathBuf
impl Hash for AbsolutePathBuf
Source§impl PartialEq for AbsolutePathBuf
impl PartialEq for AbsolutePathBuf
Source§fn eq(&self, other: &AbsolutePathBuf) -> bool
fn eq(&self, other: &AbsolutePathBuf) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AbsolutePathBuf
impl Serialize for AbsolutePathBuf
impl Eq for AbsolutePathBuf
impl StructuralPartialEq for AbsolutePathBuf
Auto Trait Implementations§
impl Freeze for AbsolutePathBuf
impl RefUnwindSafe for AbsolutePathBuf
impl Send for AbsolutePathBuf
impl Sync for AbsolutePathBuf
impl Unpin for AbsolutePathBuf
impl UnsafeUnpin for AbsolutePathBuf
impl UnwindSafe for AbsolutePathBuf
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