#[non_exhaustive]pub enum WireNode {
Document {
range: Range,
origin: Option<String>,
children: Vec<WireNode>,
},
Session {
range: Range,
origin: Option<String>,
title: String,
marker: Option<String>,
children: Vec<WireNode>,
},
Definition {
range: Range,
origin: Option<String>,
subject: String,
children: Vec<WireNode>,
},
Paragraph {
range: Range,
origin: Option<String>,
inlines: Vec<WireInline>,
},
List {
range: Range,
origin: Option<String>,
marker_style: String,
items: Vec<WireListItem>,
},
Verbatim {
range: Range,
origin: Option<String>,
label: String,
params: Value,
body_text: String,
subject: String,
mode: String,
},
Table {
range: Range,
origin: Option<String>,
caption: String,
header_rows: u32,
align: String,
rows: Vec<WireRow>,
footnotes: Vec<WireFootnote>,
},
Annotation {
range: Range,
origin: Option<String>,
label: String,
params: Value,
body: Value,
},
Blank {
range: Range,
origin: Option<String>,
},
}Expand description
A block-level wire AST node. Wire form is a tagged object with "kind"
selecting the variant, plus shared range and optional origin fields.
See the module-level docs for the forward-compatibility contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Document
Session
Fields
Definition
Paragraph
List
Verbatim
Fields
Table
Fields
§
footnotes: Vec<WireFootnote>Annotation
Fields
§
body: Valuenull for marker-form annotations, a string for opaque-text
bodies, an object { "kind": "block", "children": [...] } for
parsed-Lex bodies. See AnnotationBody
for the corresponding LabelCtx shape.
Blank
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireNode
impl<'de> Deserialize<'de> for WireNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for WireNode
Auto Trait Implementations§
impl Freeze for WireNode
impl RefUnwindSafe for WireNode
impl Send for WireNode
impl Sync for WireNode
impl Unpin for WireNode
impl UnsafeUnpin for WireNode
impl UnwindSafe for WireNode
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