pub enum InvalidFileName {
Empty,
InvalidChar(char),
}Expand description
Why a string is not a valid FileName.
Variants§
Empty
The name was empty.
InvalidChar(char)
The name contained a character other than an ASCII letter, an ASCII
digit, _, - or +; a dot is rejected, so a name never has an
extension.
Trait Implementations§
Source§impl Clone for InvalidFileName
impl Clone for InvalidFileName
impl Copy for InvalidFileName
Source§impl Debug for InvalidFileName
impl Debug for InvalidFileName
Source§impl Display for InvalidFileName
impl Display for InvalidFileName
impl Eq for InvalidFileName
Source§impl Error for InvalidFileName
impl Error for InvalidFileName
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidFileName
impl PartialEq for InvalidFileName
impl StructuralPartialEq for InvalidFileName
Auto Trait Implementations§
impl Freeze for InvalidFileName
impl RefUnwindSafe for InvalidFileName
impl Send for InvalidFileName
impl Sync for InvalidFileName
impl Unpin for InvalidFileName
impl UnsafeUnpin for InvalidFileName
impl UnwindSafe for InvalidFileName
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.