pub enum EnumFunctionOperation {
Show 15 variants
First,
Last,
Range,
BoundedRange,
Compare,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
Smaller,
Larger,
Hash,
ExtendedHash,
}Expand description
Operation selected for one call of an anyenum support function. The bound call carries the concrete enum type, because enum_first, enum_last and enum_range read only their argument’s type.
Variants§
First
Last
Range
BoundedRange
Compare
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
Smaller
Larger
Hash
ExtendedHash
Implementations§
Source§impl EnumFunctionOperation
impl EnumFunctionOperation
Sourcepub fn from_call(name: &str, argument_count: usize) -> Option<Self>
pub fn from_call(name: &str, argument_count: usize) -> Option<Self>
Resolve a local pg_catalog routine name and argument count to its operation.
Sourcepub fn is_routine_name(name: &str) -> bool
pub fn is_routine_name(name: &str) -> bool
Whether any overload of this routine name is an enum support function.
pub const fn label(self) -> &'static str
Sourcepub const fn is_strict(self) -> bool
pub const fn is_strict(self) -> bool
enum_first, enum_last and both enum_range forms accept NULL arguments; every other support function is strict.
Sourcepub const fn enum_argument_count(self) -> usize
pub const fn enum_argument_count(self) -> usize
The zero-based argument positions declared anyenum; hashenumextended takes a trailing int8 seed.
Trait Implementations§
Source§impl Clone for EnumFunctionOperation
impl Clone for EnumFunctionOperation
impl Copy for EnumFunctionOperation
Source§impl Debug for EnumFunctionOperation
impl Debug for EnumFunctionOperation
Source§impl<'de> Deserialize<'de> for EnumFunctionOperation
impl<'de> Deserialize<'de> for EnumFunctionOperation
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
impl Eq for EnumFunctionOperation
Source§impl PartialEq for EnumFunctionOperation
impl PartialEq for EnumFunctionOperation
Source§impl Serialize for EnumFunctionOperation
impl Serialize for EnumFunctionOperation
impl StructuralPartialEq for EnumFunctionOperation
Auto Trait Implementations§
impl Freeze for EnumFunctionOperation
impl RefUnwindSafe for EnumFunctionOperation
impl Send for EnumFunctionOperation
impl Sync for EnumFunctionOperation
impl Unpin for EnumFunctionOperation
impl UnsafeUnpin for EnumFunctionOperation
impl UnwindSafe for EnumFunctionOperation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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