pub enum Path {
File,
Entity(EntityId),
Attribute {
entity: EntityId,
index: usize,
name: Option<String>,
},
}Expand description
Where in the file a finding applies.
Deliberately not a string: a caller that wants to jump to the offending attribute needs the entity and slot as data, and formatting is a presentation choice made at the edge.
Variants§
File
The file as a whole, e.g. a header or global-rule finding.
Entity(EntityId)
One entity instance.
Attribute
One attribute slot of one entity.
Trait Implementations§
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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