Struct pgx_pg_sys::QueryOperand
source · [−]#[repr(C)]pub struct QueryOperand {
pub type_: QueryItemType,
pub weight: uint8,
pub prefix: bool,
pub valcrc: int32,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
}
Fields
type_: QueryItemType
weight: uint8
prefix: bool
valcrc: int32
_bitfield_align_1: [u32; 0]
_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
Implementations
sourceimpl QueryOperand
impl QueryOperand
pub fn length(&self) -> uint32
pub fn set_length(&mut self, val: uint32)
pub fn distance(&self) -> uint32
pub fn set_distance(&mut self, val: uint32)
pub fn new_bitfield_1(
length: uint32,
distance: uint32
) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations
sourceimpl Clone for QueryOperand
impl Clone for QueryOperand
sourcefn clone(&self) -> QueryOperand
fn clone(&self) -> QueryOperand
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 QueryOperand
impl Debug for QueryOperand
sourceimpl Default for QueryOperand
impl Default for QueryOperand
sourcefn default() -> QueryOperand
fn default() -> QueryOperand
Returns the “default value” for a type. Read more
impl Copy for QueryOperand
Auto Trait Implementations
impl RefUnwindSafe for QueryOperand
impl Send for QueryOperand
impl Sync for QueryOperand
impl Unpin for QueryOperand
impl UnwindSafe for QueryOperand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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