pub struct Sourcepos {
pub start: LineColumn,
pub end: LineColumn,
}
Expand description
Represents the position in the source Markdown this node was rendered from.
Fields§
§start: LineColumn
The line and column of the first character of this node.
end: LineColumn
The line and column of the last character of this node.
Trait Implementations§
source§impl Ord for Sourcepos
impl Ord for Sourcepos
source§impl PartialEq for Sourcepos
impl PartialEq for Sourcepos
source§impl PartialOrd for Sourcepos
impl PartialOrd for Sourcepos
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Sourcepos
impl Eq for Sourcepos
impl StructuralEq for Sourcepos
impl StructuralPartialEq for Sourcepos
Auto Trait Implementations§
impl RefUnwindSafe for Sourcepos
impl Send for Sourcepos
impl Sync for Sourcepos
impl Unpin for Sourcepos
impl UnwindSafe for Sourcepos
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