pub enum Nullability {
NullFirst,
NullSecond,
}
Expand description
Avro types are not nullable, with nullability instead encoded as a union where one of the variants is the null type.
To accommodate this we special case two-variant unions where one of the variants is the null type, and use this to derive arrow’s notion of nullability
Variants§
NullFirst
The nulls are encoded as the first union variant
NullSecond
The nulls are encoded as the second union variant
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
impl Copy 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