pub struct RepositoryPath(/* private fields */);Implementations§
Source§impl RepositoryPath
impl RepositoryPath
pub fn utf8(value: String) -> Result<Self, RepositoryPathError>
pub fn unix_bytes(value: Vec<u8>) -> Result<Self, RepositoryPathError>
pub fn byte_len(&self) -> usize
pub fn display_text(&self) -> Cow<'_, str>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_utf8(&self) -> Option<&str>
pub fn as_unix_bytes(&self) -> Option<&[u8]>
pub fn is_descendant_of(&self, ancestor: &Self) -> bool
pub fn component_count(&self) -> usize
pub fn depth(&self) -> usize
pub fn file_name_bytes(&self) -> &[u8] ⓘ
pub fn file_name_display_text(&self) -> Cow<'_, str>
Trait Implementations§
Source§impl Clone for RepositoryPath
impl Clone for RepositoryPath
Source§impl Debug for RepositoryPath
impl Debug for RepositoryPath
Source§impl<'de> Deserialize<'de> for RepositoryPath
impl<'de> Deserialize<'de> for RepositoryPath
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
impl Eq for RepositoryPath
Source§impl Hash for RepositoryPath
impl Hash for RepositoryPath
Source§impl Ord for RepositoryPath
impl Ord for RepositoryPath
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RepositoryPath
impl PartialEq for RepositoryPath
Source§impl PartialOrd for RepositoryPath
impl PartialOrd for RepositoryPath
Auto Trait Implementations§
impl Freeze for RepositoryPath
impl RefUnwindSafe for RepositoryPath
impl Send for RepositoryPath
impl Sync for RepositoryPath
impl Unpin for RepositoryPath
impl UnsafeUnpin for RepositoryPath
impl UnwindSafe for RepositoryPath
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