Skip to main content

QueryFilter

Struct QueryFilter 

Source
pub struct QueryFilter(/* private fields */);

Implementations§

Source§

impl QueryFilter

Source

pub fn new(limit: u32) -> QueryFilter

Source

pub const fn from_raw(raw: tb_query_filter_t) -> QueryFilter

Source

pub const fn into_raw(self) -> tb_query_filter_t

Source

pub const fn as_raw(&self) -> &tb_query_filter_t

Source

pub fn as_raw_mut(&mut self) -> &mut tb_query_filter_t

Source

pub const fn user_data_128(&self) -> u128

Source

pub fn set_user_data_128(&mut self, user_data: u128)

Source

pub fn with_user_data_128(self, user_data: u128) -> QueryFilter

Source

pub const fn user_data_64(&self) -> u64

Source

pub fn set_user_data_64(&mut self, user_data: u64)

Source

pub fn with_user_data_64(self, user_data: u64) -> QueryFilter

Source

pub const fn user_data_32(&self) -> u32

Source

pub fn set_user_data_32(&mut self, user_data: u32)

Source

pub fn with_user_data_32(self, user_data: u32) -> QueryFilter

Source

pub const fn ledger(&self) -> u32

Source

pub fn set_ledger(&mut self, ledger: u32)

Source

pub fn with_ledger(self, ledger: u32) -> QueryFilter

Source

pub const fn code(&self) -> u16

Source

pub fn set_code(&mut self, code: u16)

Source

pub fn with_code(self, code: u16) -> QueryFilter

Source

pub fn timestamp_min(&self) -> SystemTime

Source

pub fn set_timestamp_min(&mut self, timestamp_min: SystemTime)

Source

pub fn with_timestamp_min(self, timestamp_min: SystemTime) -> QueryFilter

Source

pub fn timestamp_max(&self) -> SystemTime

Source

pub fn set_timestamp_max(&mut self, timestamp_max: SystemTime)

Source

pub fn with_timestamp_max(self, timestamp_max: SystemTime) -> QueryFilter

Source

pub const fn limit(&self) -> u32

Source

pub fn set_limit(&mut self, limit: u32)

Source

pub fn with_limit(self, limit: u32) -> QueryFilter

Source

pub const fn flags(&self) -> QueryFilterFlags

Source

pub fn set_flags(&mut self, flags: QueryFilterFlags)

Source

pub const fn with_flags(self, flags: QueryFilterFlags) -> QueryFilter

Trait Implementations§

Source§

impl Clone for QueryFilter

Source§

fn clone(&self) -> QueryFilter

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryFilter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<tb_query_filter_t> for QueryFilter

Source§

fn from(value: tb_query_filter_t) -> QueryFilter

Converts to this type from the input type.
Source§

impl TransparentWrapper<tb_query_filter_t> for QueryFilter

Source§

fn wrap(s: Inner) -> Self
where Self: Sized,

Convert the inner type into the wrapper type.
Source§

fn wrap_ref(s: &Inner) -> &Self

Convert a reference to the inner type into a reference to the wrapper type.
Source§

fn wrap_mut(s: &mut Inner) -> &mut Self

Convert a mutable reference to the inner type into a mutable reference to the wrapper type.
Source§

fn wrap_slice(s: &[Inner]) -> &[Self]
where Self: Sized,

Convert a slice to the inner type into a slice to the wrapper type.
Source§

fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
where Self: Sized,

Convert a mutable slice to the inner type into a mutable slice to the wrapper type.
Source§

fn peel(s: Self) -> Inner
where Self: Sized,

Convert the wrapper type into the inner type.
Source§

fn peel_ref(s: &Self) -> &Inner

Convert a reference to the wrapper type into a reference to the inner type.
Source§

fn peel_mut(s: &mut Self) -> &mut Inner

Convert a mutable reference to the wrapper type into a mutable reference to the inner type.
Source§

fn peel_slice(s: &[Self]) -> &[Inner]
where Self: Sized,

Convert a slice to the wrapped type into a slice to the inner type.
Source§

fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]
where Self: Sized,

Convert a mutable slice to the wrapped type into a mutable slice to the inner type.
Source§

impl Zeroable for QueryFilter

Source§

fn zeroed() -> Self

Source§

impl Copy for QueryFilter

Source§

impl Pod for QueryFilter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<I, T> TransparentWrapperAlloc<I> for T
where T: TransparentWrapper<I> + ?Sized, I: ?Sized,

Source§

fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
where Self: Sized,

Convert a vec of the inner type into a vec of the wrapper type.
Source§

fn wrap_box(s: Box<Inner>) -> Box<Self>

Convert a box to the inner type into a box to the wrapper type.
Source§

fn wrap_rc(s: Rc<Inner>) -> Rc<Self>

Convert an Rc to the inner type into an Rc to the wrapper type.
Source§

fn wrap_arc(s: Arc<Inner>) -> Arc<Self>

Convert an Arc to the inner type into an Arc to the wrapper type.
Source§

fn peel_vec(s: Vec<Self>) -> Vec<Inner>
where Self: Sized,

Convert a vec of the wrapper type into a vec of the inner type.
Source§

fn peel_box(s: Box<Self>) -> Box<Inner>

Convert a box to the wrapper type into a box to the inner type.
Source§

fn peel_rc(s: Rc<Self>) -> Rc<Inner>

Convert an Rc to the wrapper type into an Rc to the inner type.
Source§

fn peel_arc(s: Arc<Self>) -> Arc<Inner>

Convert an Arc to the wrapper type into an Arc to the inner type.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,