#[non_exhaustive]pub enum InvalidClassSignature {
UnclosedAngles,
UnknownTypeTag(UnknownTypeTag),
ExpectedReference,
ExpectedClass,
}Expand description
Errors encountered while parsing a class signature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnclosedAngles
Unclosed angles.
UnknownTypeTag(UnknownTypeTag)
Unknown type signature tag.
ExpectedReference
Expected ReferenceTypeSignature.
ExpectedClass
Expected ClassTypeSignature.
Trait Implementations§
Source§impl Clone for InvalidClassSignature
impl Clone for InvalidClassSignature
Source§impl Debug for InvalidClassSignature
impl Debug for InvalidClassSignature
Source§impl Display for InvalidClassSignature
impl Display for InvalidClassSignature
Source§impl Error for InvalidClassSignature
impl Error for InvalidClassSignature
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 From<UnknownTypeTag> for InvalidClassSignature
impl From<UnknownTypeTag> for InvalidClassSignature
Source§fn from(value: UnknownTypeTag) -> Self
fn from(value: UnknownTypeTag) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidClassSignature
impl RefUnwindSafe for InvalidClassSignature
impl Send for InvalidClassSignature
impl Sync for InvalidClassSignature
impl Unpin for InvalidClassSignature
impl UnsafeUnpin for InvalidClassSignature
impl UnwindSafe for InvalidClassSignature
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