pub enum OwnedValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(Box<[u8]>),
Node {
table: u16,
row: u64,
},
Lane {
phys: PhysType,
word: i64,
},
}Expand description
A constant at the program boundary. Becomes a Constant vector at evaluation, so kernels see one encoding for literals and correlated single values alike.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
Str(Box<[u8]>)
Node
Lane
A temporal value: one word, and the lane that says what the count in it is a count of. The lane is on the constant rather than worked out from the word because nothing about a number of days tells you it is days.
Trait Implementations§
Source§impl Clone for OwnedValue
impl Clone for OwnedValue
Source§impl Debug for OwnedValue
impl Debug for OwnedValue
Source§impl PartialEq for OwnedValue
impl PartialEq for OwnedValue
impl StructuralPartialEq for OwnedValue
Auto Trait Implementations§
impl Freeze for OwnedValue
impl RefUnwindSafe for OwnedValue
impl Send for OwnedValue
impl Sync for OwnedValue
impl Unpin for OwnedValue
impl UnsafeUnpin for OwnedValue
impl UnwindSafe for OwnedValue
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