pub struct Violations(pub Vec<Violation>);Expand description
Every well-formedness violation of a chart, as one error value.
crate::compile::CompiledChart::new returns the violations as a Vec<Violation>; wrap
them with map_err(Violations) to use ? into Box<dyn Error>. Displays one violation
per line.
Tuple Fields§
§0: Vec<Violation>Trait Implementations§
Source§impl Clone for Violations
impl Clone for Violations
Source§impl Debug for Violations
impl Debug for Violations
Source§impl Display for Violations
impl Display for Violations
impl Eq for Violations
Source§impl Error for Violations
impl Error for Violations
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 Violations
impl PartialEq for Violations
impl StructuralPartialEq for Violations
Auto Trait Implementations§
impl Forget for Violations
impl Freeze for Violations
impl Move for Violations
impl RefUnwindSafe for Violations
impl Send for Violations
impl Sync for Violations
impl Unpin for Violations
impl UnsafeUnpin for Violations
impl UnwindSafe for Violations
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