pub struct Line {
pub kind: LineKind,
pub containers: Vec<Container>,
pub continues: bool,
}Expand description
A line’s attributes: its block role plus the container path it sits in.
Fields§
§kind: LineKind§containers: Vec<Container>Ancestor containers, outermost first. A multi-paragraph list item is two
Para lines sharing one [ListItem] path; a paragraph in a quote in a
list item is [ListItem, Quote].
continues: boolWhether this line continues the previous line’s block across a hard
line break (no paragraph break between), rather than starting a new
block. false = a new block (paragraph spacing on either side); true =
a within-block line break (markdown hard break; consecutive lines of one
code fence). The first line is always false. This is what keeps a hard
break (backend #linebreak()) distinct from a paragraph boundary through
the freeze, and what groups a code fence’s lines without an
adjacency heuristic.
Trait Implementations§
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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
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.