pub enum TypedError {
NoKind {
spelled: String,
},
BadKind {
kind: String,
},
BadId {
kind: Option<KindName>,
id: String,
},
BadBytes(DecodeError),
}Expand description
A string written as a typed value that isn’t one.
Variants§
NoKind
No kind: (@logo).
BadKind
A kind that isn’t one (@File:x).
BadId
An id that isn’t one (@file:a b), of kind when it’s known.
BadBytes(DecodeError)
@bytes: that isn’t base64.
Trait Implementations§
Source§impl Clone for TypedError
impl Clone for TypedError
Source§fn clone(&self) -> TypedError
fn clone(&self) -> TypedError
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 moreSource§impl Debug for TypedError
impl Debug for TypedError
Source§impl Display for TypedError
impl Display for TypedError
impl Eq for TypedError
Source§impl Error for TypedError
impl Error for TypedError
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 TypedError
impl PartialEq for TypedError
impl StructuralPartialEq for TypedError
Auto Trait Implementations§
impl Freeze for TypedError
impl RefUnwindSafe for TypedError
impl Send for TypedError
impl Sync for TypedError
impl Unpin for TypedError
impl UnsafeUnpin for TypedError
impl UnwindSafe for TypedError
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