pub enum FilenameError {
InvalidCharacter,
FilenameEmpty,
NameTooLong,
MisplacedPeriod,
Utf8Error,
}
Expand description
Various filename related errors that can occur.
Variants§
InvalidCharacter
Tried to create a file with an invalid character.
FilenameEmpty
Tried to create a file with no file name.
NameTooLong
Given name was too long (we are limited to 8.3).
MisplacedPeriod
Can’t start a file with a period, or after 8 characters.
Utf8Error
Can’t extract utf8 from file name
Trait Implementations§
Source§impl Clone for FilenameError
impl Clone for FilenameError
Source§fn clone(&self) -> FilenameError
fn clone(&self) -> FilenameError
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FilenameError
impl RefUnwindSafe for FilenameError
impl Send for FilenameError
impl Sync for FilenameError
impl Unpin for FilenameError
impl UnwindSafe for FilenameError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)