pub struct HrxPath(/* private fields */);Expand description
Verified-valid path to an entry in the archive.
Paths consist of /-separated components, each one consisting of characters higher than U+001F, except /, \\ and :.
Components cannot be . nor ...
§Examples
let path = HrxPath::from_str("хэнло/communism.exe").unwrap();
assert_eq!(path.as_ref(), "хэнло/communism.exe");
assert_eq!(path.to_string(), "хэнло/communism.exe");
let raw = path.into_inner();
assert_eq!(raw, "хэнло/communism.exe");Implementations§
Trait Implementations§
Source§impl Ord for HrxPath
impl Ord for HrxPath
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 PartialOrd for HrxPath
impl PartialOrd for HrxPath
impl Eq for HrxPath
impl StructuralPartialEq for HrxPath
Auto Trait Implementations§
impl Freeze for HrxPath
impl RefUnwindSafe for HrxPath
impl Send for HrxPath
impl Sync for HrxPath
impl Unpin for HrxPath
impl UnsafeUnpin for HrxPath
impl UnwindSafe for HrxPath
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