pub enum OperatorClassItem {
Operator {
strategy_number: u64,
operator_name: ObjectName,
op_types: Option<OperatorArgTypes>,
purpose: Option<OperatorPurpose>,
},
Function {
support_number: u64,
op_types: Option<Vec<DataType>>,
function_name: ObjectName,
argument_types: Vec<DataType>,
},
Storage {
storage_type: DataType,
},
}Available on crate feature
sql only.Expand description
An item in a CREATE OPERATOR CLASS statement
Variants§
Operator
OPERATOR clause describing a specific operator implementation.
Fields
§
operator_name: ObjectNameThe operator name referenced by this clause.
§
op_types: Option<OperatorArgTypes>Optional operator argument types.
§
purpose: Option<OperatorPurpose>Optional purpose such as FOR SEARCH or FOR ORDER BY.
Function
FUNCTION clause describing a support function for the operator class.
Fields
§
function_name: ObjectNameThe function name implementing the support function.
Storage
STORAGE clause specifying the storage type.
Trait Implementations§
Source§impl Clone for OperatorClassItem
impl Clone for OperatorClassItem
Source§fn clone(&self) -> OperatorClassItem
fn clone(&self) -> OperatorClassItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorClassItem
impl Debug for OperatorClassItem
Source§impl Display for OperatorClassItem
impl Display for OperatorClassItem
Source§impl Hash for OperatorClassItem
impl Hash for OperatorClassItem
Source§impl Ord for OperatorClassItem
impl Ord for OperatorClassItem
Source§fn cmp(&self, other: &OperatorClassItem) -> Ordering
fn cmp(&self, other: &OperatorClassItem) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperatorClassItem
impl PartialEq for OperatorClassItem
Source§impl PartialOrd for OperatorClassItem
impl PartialOrd for OperatorClassItem
Source§impl Visit for OperatorClassItem
impl Visit for OperatorClassItem
Source§impl VisitMut for OperatorClassItem
impl VisitMut for OperatorClassItem
Source§fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for OperatorClassItem
impl StructuralPartialEq for OperatorClassItem
Auto Trait Implementations§
impl Freeze for OperatorClassItem
impl RefUnwindSafe for OperatorClassItem
impl Send for OperatorClassItem
impl Sync for OperatorClassItem
impl Unpin for OperatorClassItem
impl UnsafeUnpin for OperatorClassItem
impl UnwindSafe for OperatorClassItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more