pub enum Register {
Value(Value),
Aggregate(AggContext),
Record(ImmutableRecord),
}Variants§
Implementations§
Source§impl Register
impl Register
pub const fn is_null(&self) -> bool
Sourcepub fn set_int(&mut self, val: i64)
pub fn set_int(&mut self, val: i64)
Sets the value of the register to an integer, reusing the existing Register::Value(Value::Numeric(Numeric::Integer(_))) if possible, which is faster than always creating a new one.
Sourcepub fn set_float(&mut self, val: NonNan)
pub fn set_float(&mut self, val: NonNan)
Set the value of the register to a floating point, reusing Register::Value(Value::Numeric(Numeric::Float(_))) if possible.
Sourcepub fn set_text(&mut self, val: Text) -> Result<()>
pub fn set_text(&mut self, val: Text) -> Result<()>
Set the value of the register to a Text, reusing Register::Value(Value::Text(_)) buffer if possible.
Sourcepub fn set_blob(&mut self, val: Vec<u8>) -> Result<()>
pub fn set_blob(&mut self, val: Vec<u8>) -> Result<()>
Set the value of the register to a blob, reusing Register::Value(Value::Blob(_)) buffer if possible.
pub fn set_null(&mut self)
Trait Implementations§
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl !Send for Register
impl !Sync for Register
impl Freeze for Register
impl RefUnwindSafe for Register
impl Unpin for Register
impl UnsafeUnpin for Register
impl UnwindSafe for Register
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more