pub struct Location<'a> {
pub range: Option<Range>,
pub parents: Vec<&'a str>,
pub instance: &'a str,
}Expand description
Where a directive stands in its tree.
Fields§
§range: Option<Range>Its lines in the source it was read from.
parents: Vec<&'a str>The kinds of the directives that hold it, outermost first; empty at the top level.
instance: &'a strA resolved node’s composition instance (root, root/base); empty for an authored tree.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Location<'a>
Auto Trait Implementations§
impl<'a> Forget for Location<'a>
impl<'a> Freeze for Location<'a>
impl<'a> Move for Location<'a>
impl<'a> RefUnwindSafe for Location<'a>
impl<'a> Send for Location<'a>
impl<'a> Sync for Location<'a>
impl<'a> Unpin for Location<'a>
impl<'a> UnsafeUnpin for Location<'a>
impl<'a> UnwindSafe for Location<'a>
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