pub struct Block {
pub id: Ulid,
pub kind: BlockKind,
pub span: Range<usize>,
pub id_span: Range<usize>,
}Fields§
§id: Ulid§kind: BlockKind§span: Range<usize>Byte span of the block in the markdown buffer.
For paragraphs, this includes the block-id comment line plus the paragraph content. For list items, this includes the full list item (including nested content).
id_span: Range<usize>Byte span of the block-id anchor.
For paragraphs, this is the full comment line (including any leading quote/indent prefix). For list items, this is the inline HTML comment inside the list item’s first line.
Trait Implementations§
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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.