pub struct NarrowTuple(/* private fields */);Expand description
Represents the narrow filter used to restrict results.
Implementations§
Source§impl NarrowTuple
impl NarrowTuple
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new NarrowTuple.
Sourcepub const fn create(operator: Operator, operand: Operand) -> Self
pub const fn create(operator: Operator, operand: Operand) -> Self
Creates a new NarrowTuple from the provide parameters.
Sourcepub const fn operator(&self) -> &Operator
pub const fn operator(&self) -> &Operator
Gets the NarrowTuple operator.
Sourcepub fn set_operator(&mut self, val: Operator)
pub fn set_operator(&mut self, val: Operator)
Sets the NarrowTuple operator.
Sourcepub fn with_operator(self, val: Operator) -> Self
pub fn with_operator(self, val: Operator) -> Self
Builder function that sets the NarrowTuple operator.
Sourcepub const fn operand(&self) -> &Operand
pub const fn operand(&self) -> &Operand
Gets the NarrowTuple operand.
Sourcepub fn set_operand(&mut self, val: Operand)
pub fn set_operand(&mut self, val: Operand)
Sets the NarrowTuple operand.
Sourcepub fn with_operand(self, val: Operand) -> Self
pub fn with_operand(self, val: Operand) -> Self
Builder function that sets the NarrowTuple operand.
Trait Implementations§
Source§impl Clone for NarrowTuple
impl Clone for NarrowTuple
Source§impl Debug for NarrowTuple
impl Debug for NarrowTuple
Source§impl Default for NarrowTuple
impl Default for NarrowTuple
Source§impl<'de> Deserialize<'de> for NarrowTuple
impl<'de> Deserialize<'de> for NarrowTuple
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NarrowTuple
impl Display for NarrowTuple
impl Eq for NarrowTuple
Source§impl PartialEq for NarrowTuple
impl PartialEq for NarrowTuple
Source§impl Serialize for NarrowTuple
impl Serialize for NarrowTuple
impl StructuralPartialEq for NarrowTuple
Auto Trait Implementations§
impl Freeze for NarrowTuple
impl RefUnwindSafe for NarrowTuple
impl Send for NarrowTuple
impl Sync for NarrowTuple
impl Unpin for NarrowTuple
impl UnsafeUnpin for NarrowTuple
impl UnwindSafe for NarrowTuple
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.