pub enum Nullability {
NonNullable,
Nullable,
}Expand description
Whether an item can contain a null value or not
Variants§
Trait Implementations§
Source§impl Clone for Nullability
impl Clone for Nullability
Source§fn clone(&self) -> Nullability
fn clone(&self) -> Nullability
Returns a copy 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 Nullability
impl Debug for Nullability
Source§impl Default for Nullability
impl Default for Nullability
Source§fn default() -> Nullability
fn default() -> Nullability
Returns the “default value” for a type. Read more
Source§impl Display for Nullability
impl Display for Nullability
Source§impl From<Nullability> for bool
impl From<Nullability> for bool
Source§fn from(value: Nullability) -> Self
fn from(value: Nullability) -> Self
Converts to this type from the input type.
Source§impl From<bool> for Nullability
impl From<bool> for Nullability
Source§impl Hash for Nullability
impl Hash for Nullability
Source§impl Ord for Nullability
impl Ord for Nullability
Source§fn cmp(&self, other: &Nullability) -> Ordering
fn cmp(&self, other: &Nullability) -> 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 Nullability
impl PartialEq for Nullability
Source§impl PartialOrd for Nullability
impl PartialOrd for Nullability
impl Copy for Nullability
impl Eq for Nullability
impl StructuralPartialEq for Nullability
Auto Trait Implementations§
impl Freeze for Nullability
impl RefUnwindSafe for Nullability
impl Send for Nullability
impl Sync for Nullability
impl Unpin for Nullability
impl UnwindSafe for Nullability
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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