pub enum ClassDescriptorError {
InvalidIdentity {
name: Symbol,
reason: &'static str,
},
InvalidParent {
name: Symbol,
reason: &'static str,
},
DuplicateParent {
name: Symbol,
},
SelfParent {
name: Symbol,
},
InvalidMember {
name: Symbol,
reason: &'static str,
},
DuplicateMember {
name: Symbol,
},
MalformedShape {
name: Symbol,
},
InvalidReadConstructor,
InvalidMetadata {
name: Symbol,
reason: &'static str,
},
DuplicateMetadata {
name: Symbol,
},
}Expand description
Exact construction failure, retaining the offending declaration name.
Variants§
InvalidIdentity
InvalidParent
DuplicateParent
SelfParent
InvalidMember
DuplicateMember
MalformedShape
InvalidReadConstructor
InvalidMetadata
DuplicateMetadata
Trait Implementations§
Source§impl Clone for ClassDescriptorError
impl Clone for ClassDescriptorError
Source§fn clone(&self) -> ClassDescriptorError
fn clone(&self) -> ClassDescriptorError
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 ClassDescriptorError
impl Debug for ClassDescriptorError
Source§impl Display for ClassDescriptorError
impl Display for ClassDescriptorError
impl Eq for ClassDescriptorError
Source§impl Error for ClassDescriptorError
impl Error for ClassDescriptorError
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 ClassDescriptorError
impl PartialEq for ClassDescriptorError
impl StructuralPartialEq for ClassDescriptorError
Auto Trait Implementations§
impl Freeze for ClassDescriptorError
impl RefUnwindSafe for ClassDescriptorError
impl Send for ClassDescriptorError
impl Sync for ClassDescriptorError
impl Unpin for ClassDescriptorError
impl UnsafeUnpin for ClassDescriptorError
impl UnwindSafe for ClassDescriptorError
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