pub enum FileNameRefusal {
Empty,
Nul,
LeadingSeparator,
Separator,
DotSegment,
DrivePrefix,
}Expand description
The property that makes a string no file name.
These six are the whole of what FileName refuses; a value carrying none
of them is accepted.
Variants§
Empty
The value is empty.
Nul
The value contains a NUL byte.
LeadingSeparator
The value begins with a separator.
Separator
The value contains a separator.
DotSegment
The value carries a . or .. segment, or is one.
DrivePrefix
The value carries a drive prefix: one letter followed by a colon.
Implementations§
Trait Implementations§
Source§impl Clone for FileNameRefusal
impl Clone for FileNameRefusal
Source§fn clone(&self) -> FileNameRefusal
fn clone(&self) -> FileNameRefusal
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 moreimpl Copy for FileNameRefusal
Source§impl Debug for FileNameRefusal
impl Debug for FileNameRefusal
Source§impl Display for FileNameRefusal
impl Display for FileNameRefusal
impl Eq for FileNameRefusal
Source§impl Hash for FileNameRefusal
impl Hash for FileNameRefusal
Source§impl PartialEq for FileNameRefusal
impl PartialEq for FileNameRefusal
impl StructuralPartialEq for FileNameRefusal
Auto Trait Implementations§
impl Freeze for FileNameRefusal
impl RefUnwindSafe for FileNameRefusal
impl Send for FileNameRefusal
impl Sync for FileNameRefusal
impl Unpin for FileNameRefusal
impl UnsafeUnpin for FileNameRefusal
impl UnwindSafe for FileNameRefusal
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