Struct pgrx_pg_sys::submodules::datum::NullableDatum
source · #[repr(C)]pub struct NullableDatum {
pub value: Datum,
pub isnull: bool,
}
Expand description
This struct consists of a Datum and a bool, matching Postgres’s definition as of Postgres 12. This isn’t efficient in terms of storage size, due to padding, but sometimes it’s more cache-friendly, so sometimes it is the preferred type.
Fields§
§value: Datum
§isnull: bool
Trait Implementations§
source§impl Clone for NullableDatum
impl Clone for NullableDatum
source§fn clone(&self) -> NullableDatum
fn clone(&self) -> NullableDatum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NullableDatum
impl Debug for NullableDatum
source§impl TryFrom<NullableDatum> for Datum
impl TryFrom<NullableDatum> for Datum
impl Copy for NullableDatum
Auto Trait Implementations§
impl Freeze for NullableDatum
impl RefUnwindSafe for NullableDatum
impl !Send for NullableDatum
impl !Sync for NullableDatum
impl Unpin for NullableDatum
impl UnwindSafe for NullableDatum
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