pub enum FunctionNullBehavior {
CalledOnNull,
ReturnsNullOnNull,
Strict,
}Expand description
How a routine handles a NULL argument. Strict is the exact shorthand for
ReturnsNullOnNull, kept distinct so the written spelling round-trips. A Copy
leaf enum whose span lives on the owning FunctionOption, like DropBehavior.
Variants§
CalledOnNull
CALLED ON NULL INPUT — run the routine even when an argument is null.
ReturnsNullOnNull
RETURNS NULL ON NULL INPUT — return null without running when any argument is null.
Strict
STRICT — shorthand for RETURNS NULL ON NULL INPUT.
Trait Implementations§
Source§impl Clone for FunctionNullBehavior
impl Clone for FunctionNullBehavior
Source§fn clone(&self) -> FunctionNullBehavior
fn clone(&self) -> FunctionNullBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FunctionNullBehavior
Source§impl Debug for FunctionNullBehavior
impl Debug for FunctionNullBehavior
Source§impl<'de> Deserialize<'de> for FunctionNullBehavior
impl<'de> Deserialize<'de> for FunctionNullBehavior
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 FunctionNullBehavior
Source§impl Hash for FunctionNullBehavior
impl Hash for FunctionNullBehavior
Source§impl PartialEq for FunctionNullBehavior
impl PartialEq for FunctionNullBehavior
Source§impl Render for FunctionNullBehavior
impl Render for FunctionNullBehavior
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for FunctionNullBehavior
impl Serialize for FunctionNullBehavior
impl StructuralPartialEq for FunctionNullBehavior
Auto Trait Implementations§
impl Freeze for FunctionNullBehavior
impl RefUnwindSafe for FunctionNullBehavior
impl Send for FunctionNullBehavior
impl Sync for FunctionNullBehavior
impl Unpin for FunctionNullBehavior
impl UnsafeUnpin for FunctionNullBehavior
impl UnwindSafe for FunctionNullBehavior
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