pub struct LocatedDirective {
pub directive: Directive,
pub range: TextRange,
pub family_range: TextRange,
pub outcome: DirectiveOutcome,
}Expand description
A parsed directive together with the exact carrier and family-name ranges, plus its placement outcome. Consumers retain these facts so diagnostics never need to parse comment text or repeat the attachment walk.
Fields§
§directive: Directive§range: TextRange§family_range: TextRange§outcome: DirectiveOutcomeTrait Implementations§
Source§impl Clone for LocatedDirective
impl Clone for LocatedDirective
Source§fn clone(&self) -> LocatedDirective
fn clone(&self) -> LocatedDirective
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 LocatedDirective
impl Debug for LocatedDirective
impl Eq for LocatedDirective
Source§impl PartialEq for LocatedDirective
impl PartialEq for LocatedDirective
impl StructuralPartialEq for LocatedDirective
Auto Trait Implementations§
impl Freeze for LocatedDirective
impl RefUnwindSafe for LocatedDirective
impl Send for LocatedDirective
impl Sync for LocatedDirective
impl Unpin for LocatedDirective
impl UnsafeUnpin for LocatedDirective
impl UnwindSafe for LocatedDirective
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