pub enum ValueKind {
Variable(StringId),
Int(i64),
Float(f64),
String(StringId),
Boolean(bool),
Null,
Enum(StringId),
List(IdRange<ValueId>),
Object(IdRange<FieldId>),
}
Variants§
Variable(StringId)
Int(i64)
Float(f64)
String(StringId)
Boolean(bool)
Null
Enum(StringId)
List(IdRange<ValueId>)
Object(IdRange<FieldId>)
Implementations§
Source§impl ValueKind
impl ValueKind
pub fn as_variable(&self) -> Option<StringId>
pub fn as_int(&self) -> Option<i64>
pub fn as_float(&self) -> Option<f64>
pub fn as_string(&self) -> Option<StringId>
pub fn as_boolean(&self) -> Option<bool>
pub fn as_null(&self) -> Option<()>
pub fn as_enum_value(&self) -> Option<StringId>
pub fn as_list(&self) -> Option<IdRange<ValueId>>
pub fn as_object(&self) -> Option<IdRange<FieldId>>
Auto Trait Implementations§
impl Freeze for ValueKind
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnwindSafe for ValueKind
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