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: 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

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>

impl StructuralPartialEq for Sourcepos

Auto Trait Implementations

impl Freeze for Sourcepos

impl RefUnwindSafe for Sourcepos

impl Send for Sourcepos

impl Sync for Sourcepos

impl Unpin for Sourcepos

impl UnsafeUnpin for Sourcepos

impl UnwindSafe for Sourcepos

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for Sourcepos where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for Sourcepos where T: 'static + ?Sized,

impl<T> Borrow<T> for Sourcepos where T: ?Sized,

impl<T> BorrowMut<T> for Sourcepos where T: ?Sized,

impl<T> CloneToUninit for Sourcepos where T: Clone,

impl<T> From<T> for Sourcepos

impl<T> ToOwned for Sourcepos where T: Clone,

impl<T> ToString for Sourcepos where T: Display + ?Sized,

impl<T, S> SimdFrom<T, S> for Sourcepos where S: Simd,

impl<T, U> Into<U> for Sourcepos where U: From<T>,

impl<T, U> TryFrom<U> for Sourcepos where U: Into<T>,

impl<T, U> TryInto<U> for Sourcepos where U: TryFrom<T>,