pub enum ElementCountError {
InvalidProgram {
message: String,
},
Unsupported {
kind: ElementNodeKind,
name: String,
span: Option<Span>,
reason: String,
},
Cycle {
kind: ElementNodeKind,
id: usize,
},
}Expand description
A construct for which an exact canonical element count cannot be produced.
Variants§
Trait Implementations§
Source§impl Clone for ElementCountError
impl Clone for ElementCountError
Source§fn clone(&self) -> ElementCountError
fn clone(&self) -> ElementCountError
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 ElementCountError
impl Debug for ElementCountError
Source§impl Display for ElementCountError
impl Display for ElementCountError
impl Eq for ElementCountError
Source§impl Error for ElementCountError
impl Error for ElementCountError
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 ElementCountError
impl PartialEq for ElementCountError
impl StructuralPartialEq for ElementCountError
Auto Trait Implementations§
impl Freeze for ElementCountError
impl RefUnwindSafe for ElementCountError
impl Send for ElementCountError
impl Sync for ElementCountError
impl Unpin for ElementCountError
impl UnsafeUnpin for ElementCountError
impl UnwindSafe for ElementCountError
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