pub struct CodeLine {
pub text: String,
pub pad: usize,
pub at: usize,
}Expand description
A line of a code block.
Fields§
§text: StringThe line as the block holds it, without its line break.
pad: usizeHow many bytes at its start the parser made up: the rest of a tab that a container or the block’s indentation took part of.
at: usizeWhere text[pad..] starts in the Markdown.
Trait Implementations§
impl Eq for CodeLine
impl StructuralPartialEq for CodeLine
Auto Trait Implementations§
impl Freeze for CodeLine
impl RefUnwindSafe for CodeLine
impl Send for CodeLine
impl Sync for CodeLine
impl Unpin for CodeLine
impl UnsafeUnpin for CodeLine
impl UnwindSafe for CodeLine
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§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.