pub struct Violation {
pub node: NodeId,
pub round: usize,
pub pass: Option<&'static str>,
pub span: Span,
pub kind: ViolationKind,
}Expand description
One rejected child region: what a pass tried to produce and why the engine refused it.
Fields§
§node: NodeIdThe node whose pass produced the rejected child.
round: usizeThe round in which the rejection happened (use to look up the pass).
pass: Option<&'static str>The name of the scheduled pass, if the round had one.
span: SpanThe rejected child region.
kind: ViolationKindWhy the child was rejected.
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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