pub struct CompositionError { /* private fields */ }Expand description
How one composition refused, with one required primary issue and every further issue the declaration pass established.
Implementations§
Source§impl CompositionError
impl CompositionError
Sourcepub const fn first_issue(&self) -> &CompositionIssue
pub const fn first_issue(&self) -> &CompositionIssue
The first established issue.
Sourcepub fn issues(&self) -> impl Iterator<Item = &CompositionIssue>
pub fn issues(&self) -> impl Iterator<Item = &CompositionIssue>
Every issue this refusal carries, in the order the declaration pass established them; structurally at least one and never truncated.
Trait Implementations§
Source§impl Clone for CompositionError
impl Clone for CompositionError
Source§fn clone(&self) -> CompositionError
fn clone(&self) -> CompositionError
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 CompositionError
impl Debug for CompositionError
Source§impl Display for CompositionError
impl Display for CompositionError
impl Eq for CompositionError
Source§impl Error for CompositionError
impl Error for CompositionError
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 Hash for CompositionError
impl Hash for CompositionError
Source§impl PartialEq for CompositionError
impl PartialEq for CompositionError
Source§impl Refused for CompositionError
impl Refused for CompositionError
The issues established beyond the primary cause; the primary is the summary’s own subject, never a member of its related set.
Source§fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
The exact descriptor meaning that repairs the first established composition issue.
Source§const FAMILY: Family = DECLARATION_FAMILY
const FAMILY: Family = DECLARATION_FAMILY
The family whose issue space this refusal’s related identities derive in. Read more
Source§fn class(&self) -> RefusalClass
fn class(&self) -> RefusalClass
Which class of refusal the summary line opens with.
impl StructuralPartialEq for CompositionError
Auto Trait Implementations§
impl Freeze for CompositionError
impl RefUnwindSafe for CompositionError
impl Send for CompositionError
impl Sync for CompositionError
impl Unpin for CompositionError
impl UnsafeUnpin for CompositionError
impl UnwindSafe for CompositionError
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