pub struct TreeInputBlock {
pub block_id: String,
pub kind: String,
pub raw: String,
pub text: String,
pub trivia: String,
pub attrs: Attrs,
pub span: Span,
pub children: Vec<TreeInputBlock>,
}Expand description
A block with its id, ready to encode into the tree and the blocks rows.
Fields§
§block_id: String§kind: StringThe spec/format §3 kind name (blocks.type).
raw: String§text: StringVisible text (spec/format §4.1), computed in tree context.
trivia: StringTrailing trivia (top level only; "" below).
attrs: Attrs§span: SpanThe block’s source span (spec/format §1): what own_text uses to
blank a container’s children when the properties and graph layers
scan (spec/properties §3.2, spec/graph §1). Not stored.
children: Vec<TreeInputBlock>Trait Implementations§
Source§impl Clone for TreeInputBlock
impl Clone for TreeInputBlock
Source§impl Debug for TreeInputBlock
impl Debug for TreeInputBlock
impl Eq for TreeInputBlock
Source§impl PartialEq for TreeInputBlock
impl PartialEq for TreeInputBlock
impl StructuralPartialEq for TreeInputBlock
Auto Trait Implementations§
impl Freeze for TreeInputBlock
impl RefUnwindSafe for TreeInputBlock
impl Send for TreeInputBlock
impl Sync for TreeInputBlock
impl Unpin for TreeInputBlock
impl UnsafeUnpin for TreeInputBlock
impl UnwindSafe for TreeInputBlock
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.