pub struct ReferenceLine {
pub reference: ReferenceInline,
pub reference_range: Range,
pub anchor: ReferenceAnchor,
}Expand description
A reference line and its resolved anchor.
Collected on crate::lex::ast::Document as a queryable, document-level
list (Document::reference_lines()), so downstream consumers — the babel
serializers and the LSP documentLink provider — can read the anchor
without re-deriving the line-adjacency rules.
Fields§
§reference: ReferenceInlineThe bracketed reference itself (raw text + classified type).
reference_range: RangeSource range covering the [bracketed] reference, in original-source
coordinates (brackets inclusive).
anchor: ReferenceAnchorThe resolved anchor for this reference line.
Trait Implementations§
Source§impl Clone for ReferenceLine
impl Clone for ReferenceLine
Source§fn clone(&self) -> ReferenceLine
fn clone(&self) -> ReferenceLine
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 ReferenceLine
impl Debug for ReferenceLine
Source§impl PartialEq for ReferenceLine
impl PartialEq for ReferenceLine
Source§fn eq(&self, other: &ReferenceLine) -> bool
fn eq(&self, other: &ReferenceLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReferenceLine
Auto Trait Implementations§
impl Freeze for ReferenceLine
impl RefUnwindSafe for ReferenceLine
impl Send for ReferenceLine
impl Sync for ReferenceLine
impl Unpin for ReferenceLine
impl UnsafeUnpin for ReferenceLine
impl UnwindSafe for ReferenceLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more