Enum notedown_ast::value::Value
source · [−]pub enum Value {
Null,
Boolean(bool),
Integer(BigInt),
Decimal(Decimal),
String(String),
Set(OrderedSet),
Array(Box<SparseArray>),
Object(Box<OrderedMap>),
}
Expand description
Variants
Null
It doesn’t look like anything to me
Boolean(bool)
true
or false
Integer(BigInt)
Arbitrarily large integer
Decimal(Decimal)
128-bit fixed point decimal, enough for financial calculations
String(String)
A UTF-8–encoded string
Set(OrderedSet)
Ordered set of values
Array(Box<SparseArray>)
Array of values
Object(Box<OrderedMap>)
Ordered map of key value pairs
Implementations
sourceimpl Value
impl Value
sourcepub fn string_join(lhs: String, other: Value) -> Result<Self>
pub fn string_join(lhs: String, other: Value) -> Result<Self>
join a value to the string
Trait Implementations
sourceimpl IntoASTNode for Value
impl IntoASTNode for Value
sourcefn into_node(self, range: MaybeRanged) -> ASTNode
fn into_node(self, range: MaybeRanged) -> ASTNode
Convert element into
ASTNode
with positionimpl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.