pub struct HeadingLocation {
pub range: TextRange,
pub line_range: TextRange,
pub line: u64,
pub column: u64,
}Expand description
Source position of a Markdown heading.
Fields§
§range: TextRangeHalf-open byte range of the complete ATX or Setext heading block.
line_range: TextRangeHalf-open byte range of the first source line used for anchoring.
line: u64One-based source line containing the heading text or ATX marker.
column: u64One-based byte column of the heading text or ATX marker.
Markdown indentation is ASCII, so this is also the character column.
Trait Implementations§
Source§impl Clone for HeadingLocation
impl Clone for HeadingLocation
Source§fn clone(&self) -> HeadingLocation
fn clone(&self) -> HeadingLocation
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 moreimpl Copy for HeadingLocation
Source§impl Debug for HeadingLocation
impl Debug for HeadingLocation
impl Eq for HeadingLocation
Source§impl Hash for HeadingLocation
impl Hash for HeadingLocation
Source§impl PartialEq for HeadingLocation
impl PartialEq for HeadingLocation
impl StructuralPartialEq for HeadingLocation
Auto Trait Implementations§
impl Freeze for HeadingLocation
impl RefUnwindSafe for HeadingLocation
impl Send for HeadingLocation
impl Sync for HeadingLocation
impl Unpin for HeadingLocation
impl UnsafeUnpin for HeadingLocation
impl UnwindSafe for HeadingLocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.