pub enum NullabilityHandling {
Mirror,
DeclaredOutput,
Discrete,
}Available on crate feature
parse only.Expand description
How a function handles null inputs and produces nullable outputs
Variants§
Mirror
Nullability of output mirrors the nullability of input(s)
DeclaredOutput
Function explicitly declares the nullability of its output
Discrete
Function handles nulls in a custom way per implementation
Trait Implementations§
Source§impl Clone for NullabilityHandling
impl Clone for NullabilityHandling
Source§fn clone(&self) -> NullabilityHandling
fn clone(&self) -> NullabilityHandling
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 NullabilityHandling
impl Debug for NullabilityHandling
Source§impl From<NullabilityHandling> for NullabilityHandling
impl From<NullabilityHandling> for NullabilityHandling
Source§fn from(raw: RawNullabilityHandling) -> Self
fn from(raw: RawNullabilityHandling) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NullabilityHandling
impl PartialEq for NullabilityHandling
impl StructuralPartialEq for NullabilityHandling
Auto Trait Implementations§
impl Freeze for NullabilityHandling
impl RefUnwindSafe for NullabilityHandling
impl Send for NullabilityHandling
impl Sync for NullabilityHandling
impl Unpin for NullabilityHandling
impl UnwindSafe for NullabilityHandling
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