pub enum InheritanceError {
UnknownBase {
hash: EquivalenceHash,
},
BaseNotAStruct,
Cycle,
DepthExceeded {
limit: usize,
},
InheritanceConflict {
member_id: u32,
reason: &'static str,
},
}Expand description
Error while flattening an inheritance chain.
Variants§
UnknownBase
base_type points to an EquivalenceHash that is not in the
registry.
Fields
§
hash: EquivalenceHashThe unresolved hash.
BaseNotAStruct
base_type points to a TypeObject that is not a struct
(e.g. an enum or an alias to an enum).
Cycle
Inheritance cycle detected.
DepthExceeded
Maximum depth exceeded.
InheritanceConflict
Member name or member ID collides between base and derived (XTypes 1.3 §7.2.2.4.5).
Trait Implementations§
Source§impl Clone for InheritanceError
impl Clone for InheritanceError
Source§fn clone(&self) -> InheritanceError
fn clone(&self) -> InheritanceError
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 InheritanceError
impl Debug for InheritanceError
impl Eq for InheritanceError
Source§impl PartialEq for InheritanceError
impl PartialEq for InheritanceError
Source§fn eq(&self, other: &InheritanceError) -> bool
fn eq(&self, other: &InheritanceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InheritanceError
Auto Trait Implementations§
impl Freeze for InheritanceError
impl RefUnwindSafe for InheritanceError
impl Send for InheritanceError
impl Sync for InheritanceError
impl Unpin for InheritanceError
impl UnsafeUnpin for InheritanceError
impl UnwindSafe for InheritanceError
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