pub struct RelativePath(/* private fields */);Implementations§
Source§impl RelativePath
impl RelativePath
Source§impl RelativePath
impl RelativePath
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, NameError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, NameError>
Build a RelativePath from a gix byte string.
gix reports paths as BStr because filesystems may produce
non-UTF-8 sequences. We hard-error on non-UTF-8 rather than
using a lossy conversion: silently mangled paths would leak
into verdict envelopes and downstream consumers would see the
wrong path.
Trait Implementations§
Source§impl AsRef<str> for RelativePath
impl AsRef<str> for RelativePath
Source§impl Clone for RelativePath
impl Clone for RelativePath
Source§fn clone(&self) -> RelativePath
fn clone(&self) -> RelativePath
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 RelativePath
impl Debug for RelativePath
Source§impl<'de> Deserialize<'de> for RelativePath
impl<'de> Deserialize<'de> for RelativePath
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 Display for RelativePath
impl Display for RelativePath
impl Eq for RelativePath
Source§impl FromStr for RelativePath
impl FromStr for RelativePath
Source§impl Hash for RelativePath
impl Hash for RelativePath
Source§impl Ord for RelativePath
impl Ord for RelativePath
Source§fn cmp(&self, other: &RelativePath) -> Ordering
fn cmp(&self, other: &RelativePath) -> Ordering
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 PartialEq for RelativePath
impl PartialEq for RelativePath
Source§impl PartialOrd for RelativePath
impl PartialOrd for RelativePath
Source§impl Serialize for RelativePath
impl Serialize for RelativePath
impl StructuralPartialEq for RelativePath
Auto Trait Implementations§
impl Freeze for RelativePath
impl RefUnwindSafe for RelativePath
impl Send for RelativePath
impl Sync for RelativePath
impl Unpin for RelativePath
impl UnsafeUnpin for RelativePath
impl UnwindSafe for RelativePath
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