pub struct Nullable<T>(/* private fields */);Expand description
Wraps a base SQL type as nullable. A distinct outer shape from any base
type, so it can have its own WrapNullable<MaybeNull> impl without
overlapping the per-base-type impls below.
Trait Implementations§
impl AssignsTo<Nullable<BigInt>> for Integer
impl AssignsTo<Nullable<BigInt>> for Nullable<Integer>
impl AssignsTo<Nullable<Numeric>> for Integer
impl AssignsTo<Nullable<Numeric>> for Nullable<Integer>
impl AssignsTo<Nullable<Numeric>> for BigInt
impl AssignsTo<Nullable<Numeric>> for Nullable<BigInt>
impl AssignsTo<Nullable<Numeric>> for Real
impl AssignsTo<Nullable<Numeric>> for Nullable<Real>
impl AssignsTo<Nullable<Real>> for Integer
impl AssignsTo<Nullable<Real>> for Nullable<Integer>
impl AssignsTo<Nullable<Real>> for BigInt
impl AssignsTo<Nullable<Real>> for Nullable<BigInt>
impl BoolLike for Nullable<Bool>
impl Comparable<BigInt> for Nullable<Integer>
impl Comparable<BigInt> for Nullable<Real>
impl Comparable<BigInt> for Nullable<Numeric>
impl Comparable<Integer> for Nullable<BigInt>
impl Comparable<Integer> for Nullable<Real>
impl Comparable<Integer> for Nullable<Numeric>
impl Comparable<Nullable<BigInt>> for Integer
impl Comparable<Nullable<BigInt>> for Nullable<Integer>
impl Comparable<Nullable<BigInt>> for Real
impl Comparable<Nullable<BigInt>> for Nullable<Real>
impl Comparable<Nullable<BigInt>> for Numeric
impl Comparable<Nullable<BigInt>> for Nullable<Numeric>
impl Comparable<Nullable<Integer>> for BigInt
impl Comparable<Nullable<Integer>> for Nullable<BigInt>
impl Comparable<Nullable<Integer>> for Real
impl Comparable<Nullable<Integer>> for Nullable<Real>
impl Comparable<Nullable<Integer>> for Numeric
impl Comparable<Nullable<Integer>> for Nullable<Numeric>
impl Comparable<Nullable<Numeric>> for Integer
impl Comparable<Nullable<Numeric>> for Nullable<Integer>
impl Comparable<Nullable<Numeric>> for BigInt
impl Comparable<Nullable<Numeric>> for Nullable<BigInt>
impl Comparable<Nullable<Numeric>> for Real
impl Comparable<Nullable<Numeric>> for Nullable<Real>
impl Comparable<Nullable<Real>> for Integer
impl Comparable<Nullable<Real>> for Nullable<Integer>
impl Comparable<Nullable<Real>> for BigInt
impl Comparable<Nullable<Real>> for Nullable<BigInt>
impl Comparable<Nullable<Real>> for Numeric
impl Comparable<Nullable<Real>> for Nullable<Numeric>
impl Comparable<Numeric> for Nullable<Integer>
impl Comparable<Numeric> for Nullable<BigInt>
impl Comparable<Numeric> for Nullable<Real>
impl Comparable<Real> for Nullable<Integer>
impl Comparable<Real> for Nullable<BigInt>
impl Comparable<Real> for Nullable<Numeric>
impl<T: SqlType> Comparable<T> for Nullable<T>
impl<S: Ordered> Ordered for Nullable<S>
A nullable column orders like its base type — the NULLs sort, they don’t stop the aggregate from existing.
impl TextLike for Nullable<Text>
Auto Trait Implementations§
impl<T> Freeze for Nullable<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Nullable<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Nullable<T>where
PhantomData<T>: Send,
impl<T> Sync for Nullable<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Nullable<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Nullable<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Nullable<T>where
PhantomData<T>: UnwindSafe,
Blanket Implementations§
impl<T> AssignsTo<Nullable<T>> for Twhere
T: SqlType,
impl<T> AssignsTo<T> for Twhere
T: SqlType,
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