pub struct PolicyEntry {
pub verb: PolicyVerb,
pub code: String,
pub source_span: Option<Span>,
}Expand description
A single entry inside a document’s diagnostics { … } block: one verb
applied to one diagnostic code.
Fields§
§verb: PolicyVerbWhat this entry does to the named code.
code: StringThe diagnostic code this entry governs, e.g. "layout.off_canvas".
source_span: Option<Span>Source declaration span, when available.
Trait Implementations§
Source§impl Clone for PolicyEntry
impl Clone for PolicyEntry
Source§fn clone(&self) -> PolicyEntry
fn clone(&self) -> PolicyEntry
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 PolicyEntry
impl Debug for PolicyEntry
impl Eq for PolicyEntry
Source§impl PartialEq for PolicyEntry
impl PartialEq for PolicyEntry
Source§fn eq(&self, other: &PolicyEntry) -> bool
fn eq(&self, other: &PolicyEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyEntry
Auto Trait Implementations§
impl Freeze for PolicyEntry
impl RefUnwindSafe for PolicyEntry
impl Send for PolicyEntry
impl Sync for PolicyEntry
impl Unpin for PolicyEntry
impl UnsafeUnpin for PolicyEntry
impl UnwindSafe for PolicyEntry
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