Struct Sourcepos
pub struct Sourcepos { pub start: LineColumn, pub end: LineColumn }
Represents the position in the source Markdown this node was rendered from.
Fields
start: LineColumnThe line and column of the first character of this node.
end: LineColumnThe line and column of the last character of this node.
Trait Implementations
impl Clone for Sourcepos
fn clone(&self) -> Self
impl Copy for Sourcepos
impl Debug for Sourcepos
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Sourcepos
fn default() -> Self
impl Display for Sourcepos
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Sourcepos
impl From<(LineColumn, LineColumn)> for Sourcepos
fn from((start, end): (LineColumn, LineColumn)) -> Sourcepos
impl From<(usize, usize, usize, usize)> for Sourcepos
fn from(sp: (usize, usize, usize, usize)) -> Sourcepos
impl Ord for Sourcepos
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Sourcepos
fn eq(&self, other: &Self) -> bool
impl PartialOrd for Sourcepos
fn partial_cmp(&self, other: &Self) -> Option<Ordering>