pub struct NullBuilder {
len: usize,
}
Expand description
Fields§
§len: usize
Implementations§
Source§impl NullBuilder
impl NullBuilder
Sourcepub fn with_capacity(_capacity: usize) -> Self
👎Deprecated: there is no actual notion of capacity in the NullBuilder, so emulating it makes little sense
pub fn with_capacity(_capacity: usize) -> Self
Creates a new null builder with space for capacity
elements without re-allocating
Sourcepub fn capacity(&self) -> usize
👎Deprecated: there is no actual notion of capacity in the NullBuilder, so emulating it makes little sense
pub fn capacity(&self) -> usize
Returns the capacity of this builder measured in slots of type T
Sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null slot into the builder
Sourcepub fn append_nulls(&mut self, n: usize)
pub fn append_nulls(&mut self, n: usize)
Appends n
null
s into the builder.
Sourcepub fn append_empty_value(&mut self)
pub fn append_empty_value(&mut self)
Appends a null slot into the builder
Sourcepub fn append_empty_values(&mut self, n: usize)
pub fn append_empty_values(&mut self, n: usize)
Appends n
null
s into the builder.
Sourcepub fn finish_cloned(&self) -> NullArray
pub fn finish_cloned(&self) -> NullArray
Builds the NullArray without resetting the builder.
Trait Implementations§
Source§impl ArrayBuilder for NullBuilder
impl ArrayBuilder for NullBuilder
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns the builder as a mutable Any
reference.
Source§fn finish_cloned(&self) -> ArrayRef
fn finish_cloned(&self) -> ArrayRef
Builds the array without resetting the builder.
Source§impl Debug for NullBuilder
impl Debug for NullBuilder
Auto Trait Implementations§
impl Freeze for NullBuilder
impl RefUnwindSafe for NullBuilder
impl Send for NullBuilder
impl Sync for NullBuilder
impl Unpin for NullBuilder
impl UnwindSafe for NullBuilder
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