pub enum Value {
}Expand description
A field’s value.
Variants§
Nothing
A field type that is read as nothing (database objects, functions and so on).
Bool(bool)
A boolean.
Int(i64)
A signed integer of 8, 16, 32 or 64 bits, or an enumeration.
UInt(u64)
An unsigned integer of 8, 16, 32 or 64 bits.
Float(f64)
A 32-bit or 64-bit float, widened to f64. A NaN keeps the bits it was stored with (a 32-bit NaN widens by
shifting its payload, quiet or signalling) and is written back with them.
Str(Vec<u8>)
String, CString and FileRef values, as stored.
Guid([u8; 16])
A 16-byte GUID.
Sha1([u8; 20])
A 20-byte SHA-1.
Resource(u64)
A 64-bit resource reference.
Pointer(Pointer)
A pointer to an instance or an import.
TypeRef(TypeRef)
A type reference.
Boxed(BoxedRef)
A boxed-value reference.
Object(Box<Object>)
A nested structure.
Array(Vec<Value>, Option<u32>)
An array’s elements, and the hash of the record it was read from (a new array has none).
Trait Implementations§
impl StructuralPartialEq for Value
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