Struct pgx_pg_sys::SortSupportData
source · [−]#[repr(C)]pub struct SortSupportData {
pub ssup_cxt: MemoryContext,
pub ssup_collation: Oid,
pub ssup_reverse: bool,
pub ssup_nulls_first: bool,
pub ssup_attno: AttrNumber,
pub ssup_extra: *mut c_void,
pub comparator: Option<unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> c_int>,
pub abbreviate: bool,
pub abbrev_converter: Option<unsafe extern "C" fn(original: Datum, ssup: SortSupport) -> Datum>,
pub abbrev_abort: Option<unsafe extern "C" fn(memtupcount: c_int, ssup: SortSupport) -> bool>,
pub abbrev_full_comparator: Option<unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> c_int>,
}
Fields
ssup_cxt: MemoryContext
ssup_collation: Oid
ssup_reverse: bool
ssup_nulls_first: bool
ssup_attno: AttrNumber
ssup_extra: *mut c_void
comparator: Option<unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> c_int>
abbreviate: bool
abbrev_converter: Option<unsafe extern "C" fn(original: Datum, ssup: SortSupport) -> Datum>
abbrev_abort: Option<unsafe extern "C" fn(memtupcount: c_int, ssup: SortSupport) -> bool>
abbrev_full_comparator: Option<unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> c_int>
Trait Implementations
sourceimpl Clone for SortSupportData
impl Clone for SortSupportData
sourcefn clone(&self) -> SortSupportData
fn clone(&self) -> SortSupportData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SortSupportData
impl Debug for SortSupportData
sourceimpl Default for SortSupportData
impl Default for SortSupportData
impl Copy for SortSupportData
Auto Trait Implementations
impl RefUnwindSafe for SortSupportData
impl !Send for SortSupportData
impl !Sync for SortSupportData
impl Unpin for SortSupportData
impl UnwindSafe for SortSupportData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more