Trait pgx::htup::IntoHeapTuple
source · pub trait IntoHeapTuple {
// Required method
unsafe fn into_heap_tuple(
self,
tupdesc: *mut TupleDescData
) -> *mut HeapTupleData;
}
Expand description
Implemented for Rust tuples that can be represented as a Postgres pg_sys::HeapTupleData
.
Required Methods§
sourceunsafe fn into_heap_tuple(
self,
tupdesc: *mut TupleDescData
) -> *mut HeapTupleData
unsafe fn into_heap_tuple( self, tupdesc: *mut TupleDescData ) -> *mut HeapTupleData
Convert Self
into a pg_sys::HeapTupleData
, returning a pointer to it.
Safety
This function is unsafe as it cannot guarantee the specified tupdesc
is valid.