Struct Sourcepos
struct Sourcepos { ... }
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.
Implementations
impl Clone for Sourcepos
fn clone(self: &Self) -> Sourcepos
impl Copy for Sourcepos
impl Debug for Sourcepos
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for Sourcepos
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Eq for Sourcepos
impl Freeze for Sourcepos
impl From for Sourcepos
fn from(sp: (usize, usize, usize, usize)) -> Sourcepos
impl Ord for Sourcepos
fn cmp(self: &Self, other: &Sourcepos) -> $crate::cmp::Ordering
impl PartialEq for Sourcepos
fn eq(self: &Self, other: &Sourcepos) -> bool
impl PartialOrd for Sourcepos
fn partial_cmp(self: &Self, other: &Sourcepos) -> $crate::option::Option<$crate::cmp::Ordering>
impl RefUnwindSafe for Sourcepos
impl Send for Sourcepos
impl StructuralPartialEq for Sourcepos
impl Sync for Sourcepos
impl Unpin for Sourcepos
impl UnwindSafe for Sourcepos
impl<T> Any for Sourcepos
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Sourcepos
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Sourcepos
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Sourcepos
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Sourcepos
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Sourcepos
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for Sourcepos
fn to_string(self: &Self) -> String
impl<T, U> Into for Sourcepos
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Sourcepos
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Sourcepos
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>