pub struct ExclusionReason {
pub model: CandidateModel,
pub required: ParentMeaning,
pub actual: ParentMeaning,
pub mismatch_code: &'static str,
}Expand description
Structured reason an adjacent model cannot implement declared class parents.
Fields§
§model: CandidateModel§required: ParentMeaningMeaning required by this crate’s declared parents field.
actual: ParentMeaningMeaning supplied by the excluded model.
mismatch_code: &'static strStable code consumed by ownership guards; never infer this from prose.
Trait Implementations§
Source§impl Clone for ExclusionReason
impl Clone for ExclusionReason
Source§fn clone(&self) -> ExclusionReason
fn clone(&self) -> ExclusionReason
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 moreimpl Copy for ExclusionReason
Source§impl Debug for ExclusionReason
impl Debug for ExclusionReason
impl Eq for ExclusionReason
Source§impl PartialEq for ExclusionReason
impl PartialEq for ExclusionReason
impl StructuralPartialEq for ExclusionReason
Auto Trait Implementations§
impl Freeze for ExclusionReason
impl RefUnwindSafe for ExclusionReason
impl Send for ExclusionReason
impl Sync for ExclusionReason
impl Unpin for ExclusionReason
impl UnsafeUnpin for ExclusionReason
impl UnwindSafe for ExclusionReason
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