pub enum Value {
String(String),
Integer(i64),
Decimal(f64),
Boolean(bool),
Array(Vec<Value>),
Range {
lower: i64,
upper: i64,
},
TaggedString {
tag: String,
content: String,
},
}Expand description
Represents all possible value types in Gram notation property records. Supports all value types defined in the tree-sitter-gram grammar.
Variants§
String(String)
Unquoted or quoted string
Example: "Alice", hello
Integer(i64)
Integer value with full i64 range
Example: 42, -10, 0
Decimal(f64)
Decimal/floating-point value
Example: 3.14, -2.5, 0.0
Boolean(bool)
Boolean value
Example: true, false
Array(Vec<Value>)
Array of values (may be heterogeneous)
Example: ["rust", 42, true]
Range
Numeric range with inclusive bounds
Example: 1..10, 0..100
TaggedString
Tagged string with format identifier
Example: """markdown # Heading"""
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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