pub struct OpclassDef {
pub name: &'static str,
pub default: bool,
}Expand description
Const-friendly operator class definition
Represents the operator class for an index column with optional default flag.
Fields§
§name: &'static strOperator class name
default: boolWhether this is the default operator class
Implementations§
Source§impl OpclassDef
impl OpclassDef
Sourcepub const fn default_opclass(self) -> Self
pub const fn default_opclass(self) -> Self
Mark as default operator class
Sourcepub const fn into_opclass(self) -> Opclass
pub const fn into_opclass(self) -> Opclass
Convert to runtime Opclass type
Trait Implementations§
Source§impl Clone for OpclassDef
impl Clone for OpclassDef
Source§fn clone(&self) -> OpclassDef
fn clone(&self) -> OpclassDef
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 OpclassDef
impl Debug for OpclassDef
Source§impl Display for OpclassDef
impl Display for OpclassDef
Source§impl From<OpclassDef> for Opclass
impl From<OpclassDef> for Opclass
Source§fn from(def: OpclassDef) -> Self
fn from(def: OpclassDef) -> Self
Converts to this type from the input type.
Source§impl Hash for OpclassDef
impl Hash for OpclassDef
Source§impl PartialEq for OpclassDef
impl PartialEq for OpclassDef
impl Copy for OpclassDef
impl Eq for OpclassDef
impl StructuralPartialEq for OpclassDef
Auto Trait Implementations§
impl Freeze for OpclassDef
impl RefUnwindSafe for OpclassDef
impl Send for OpclassDef
impl Sync for OpclassDef
impl Unpin for OpclassDef
impl UnwindSafe for OpclassDef
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