pub enum ArgumentValue {
MathContent(NodeId),
TextContent(NodeId),
Delimiter(Delimiter),
CSName(String),
Dimension(String),
Integer(String),
KeyVal(String),
Column(String),
Boolean(bool),
}Expand description
Parsed argument payload.
Only content-carrying argument variants contribute a tree edge. All scalar variants are stored inline on the owning node and are skipped by tree traversal.
Variants§
MathContent(NodeId)
Child subtree used as math-mode argument content
TextContent(NodeId)
Child subtree used as text-mode argument content
Delimiter(Delimiter)
Parsed delimiter value
CSName(String)
Control-sequence name without leading backslash
Dimension(String)
Raw dimension string
Integer(String)
Raw integer string
KeyVal(String)
Raw key-value string
Column(String)
Parsed column specification
Boolean(bool)
Boolean value, primarily used for star slots
Trait Implementations§
Source§impl Clone for ArgumentValue
impl Clone for ArgumentValue
Source§fn clone(&self) -> ArgumentValue
fn clone(&self) -> ArgumentValue
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 ArgumentValue
impl Debug for ArgumentValue
impl Eq for ArgumentValue
Source§impl PartialEq for ArgumentValue
impl PartialEq for ArgumentValue
Source§fn eq(&self, other: &ArgumentValue) -> bool
fn eq(&self, other: &ArgumentValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArgumentValue
Auto Trait Implementations§
impl Freeze for ArgumentValue
impl RefUnwindSafe for ArgumentValue
impl Send for ArgumentValue
impl Sync for ArgumentValue
impl Unpin for ArgumentValue
impl UnsafeUnpin for ArgumentValue
impl UnwindSafe for ArgumentValue
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.