pub enum NodeValue {
Var(String),
Int(i64),
Float(f64),
String(String),
Bool(bool),
Null,
}
Expand description
Represents the value of a Rego Node.
The value of a node is only valid for certain kinds of nodes,
namely Int
, Float
, String
, True
, False
, and Null
.
It will automatically unpack Scalar
and Term
nodes which
contain these kinds of values.
Variants§
Trait Implementations§
source§impl PartialEq for NodeValue
impl PartialEq for NodeValue
impl StructuralPartialEq for NodeValue
Auto Trait Implementations§
impl Freeze for NodeValue
impl RefUnwindSafe for NodeValue
impl Send for NodeValue
impl Sync for NodeValue
impl Unpin for NodeValue
impl UnwindSafe for NodeValue
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