pub enum Value {
Variable(Variable),
StringValue(StringValue),
FloatValue(FloatValue),
IntValue(IntValue),
BooleanValue(BooleanValue),
NullValue(NullValue),
EnumValue(EnumValue),
ListValue(ListValue),
ObjectValue(ObjectValue),
}Variants§
Variable(Variable)
StringValue(StringValue)
FloatValue(FloatValue)
IntValue(IntValue)
BooleanValue(BooleanValue)
NullValue(NullValue)
EnumValue(EnumValue)
ListValue(ListValue)
ObjectValue(ObjectValue)
Trait Implementations§
Source§impl CstNode for Value
impl CstNode for Value
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for Value
Source§impl From<BooleanValue> for Value
impl From<BooleanValue> for Value
Source§fn from(node: BooleanValue) -> Value
fn from(node: BooleanValue) -> Value
Converts to this type from the input type.
Source§impl From<FloatValue> for Value
impl From<FloatValue> for Value
Source§fn from(node: FloatValue) -> Value
fn from(node: FloatValue) -> Value
Converts to this type from the input type.
Source§impl From<ObjectValue> for Value
impl From<ObjectValue> for Value
Source§fn from(node: ObjectValue) -> Value
fn from(node: ObjectValue) -> Value
Converts to this type from the input type.
Source§impl From<StringValue> for Value
impl From<StringValue> for Value
Source§fn from(node: StringValue) -> Value
fn from(node: StringValue) -> Value
Converts to this type from the input type.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl !UnwindSafe for Value
impl Freeze for Value
impl Unpin for Value
impl UnsafeUnpin 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