pub enum AnnotationBody {
None,
Text(String),
Lex {
children: Vec<WireNode>,
},
}Expand description
Annotation body shape carried by LabelCtx::body. Wire form is
untagged: null, a JSON string, or { "kind": "block", "children": [...] }.
Variants§
None
body.kind: none — marker-form annotation, no body.
Text(String)
body.kind: text — opaque body. Verbatim usage always lands here.
Lex
body.kind: lex — parsed body. Children are fully-formed wire AST
nodes the handler can walk directly.
Implementations§
Source§impl AnnotationBody
impl AnnotationBody
Sourcepub fn is_none(&self) -> bool
pub fn is_none(&self) -> bool
Returns true for AnnotationBody::None.
Trait Implementations§
Source§impl Clone for AnnotationBody
impl Clone for AnnotationBody
Source§fn clone(&self) -> AnnotationBody
fn clone(&self) -> AnnotationBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationBody
impl Debug for AnnotationBody
Source§impl<'de> Deserialize<'de> for AnnotationBody
impl<'de> Deserialize<'de> for AnnotationBody
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
Source§impl PartialEq for AnnotationBody
impl PartialEq for AnnotationBody
Source§fn eq(&self, other: &AnnotationBody) -> bool
fn eq(&self, other: &AnnotationBody) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationBody
impl Serialize for AnnotationBody
impl StructuralPartialEq for AnnotationBody
Auto Trait Implementations§
impl Freeze for AnnotationBody
impl RefUnwindSafe for AnnotationBody
impl Send for AnnotationBody
impl Sync for AnnotationBody
impl Unpin for AnnotationBody
impl UnsafeUnpin for AnnotationBody
impl UnwindSafe for AnnotationBody
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