pub enum PortablePathReason {
Show 13 variants
Empty,
Absolute,
DrivePrefix,
UncPrefix,
Backslash,
DotComponent,
EmptyComponent,
InvalidCharacter,
TrailingDotOrSpace,
NonNfc,
ReservedName,
PathTooLong,
SegmentTooLong,
}Expand description
Portable-path validation failure.
Variants§
Empty
The path was empty.
Absolute
The path was absolute or had a root/prefix.
DrivePrefix
A Windows drive prefix was present.
UncPrefix
A UNC prefix was present.
Backslash
A backslash separator was present.
DotComponent
A dot or dot-dot component was present.
EmptyComponent
A component was empty.
InvalidCharacter
A character forbidden by portable filesystems was present.
TrailingDotOrSpace
A component ended in a dot or space.
NonNfc
A component was not in Unicode NFC form.
ReservedName
A Windows-reserved device name was present.
PathTooLong
The complete path was too long.
SegmentTooLong
One component was too long.
Trait Implementations§
Source§impl Clone for PortablePathReason
impl Clone for PortablePathReason
impl Copy for PortablePathReason
Source§impl Debug for PortablePathReason
impl Debug for PortablePathReason
impl Eq for PortablePathReason
Source§impl PartialEq for PortablePathReason
impl PartialEq for PortablePathReason
impl StructuralPartialEq for PortablePathReason
Auto Trait Implementations§
impl Freeze for PortablePathReason
impl RefUnwindSafe for PortablePathReason
impl Send for PortablePathReason
impl Sync for PortablePathReason
impl Unpin for PortablePathReason
impl UnsafeUnpin for PortablePathReason
impl UnwindSafe for PortablePathReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.