Struct NullBuilder
pub struct NullBuilder {
len: usize,
}
Expand description
Fields§
§len: usize
Implementations§
§impl NullBuilder
impl NullBuilder
pub fn new() -> NullBuilder
pub fn new() -> NullBuilder
Creates a new null builder
pub fn with_capacity(_capacity: usize) -> NullBuilder
👎Deprecated: there is no actual notion of capacity in the NullBuilder, so emulating it makes little sense
pub fn with_capacity(_capacity: usize) -> NullBuilder
Creates a new null builder with space for capacity
elements without re-allocating
pub 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
pub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null slot into the builder
pub fn append_nulls(&mut self, n: usize)
pub fn append_nulls(&mut self, n: usize)
Appends n
null
s into the builder.
pub fn append_empty_value(&mut self)
pub fn append_empty_value(&mut self)
Appends a null slot into the builder
pub fn append_empty_values(&mut self, n: usize)
pub fn append_empty_values(&mut self, n: usize)
Appends n
null
s into the builder.
pub fn finish_cloned(&self) -> NullArray
pub fn finish_cloned(&self) -> NullArray
Builds the NullArray without resetting the builder.
Trait Implementations§
§impl ArrayBuilder for NullBuilder
impl ArrayBuilder for NullBuilder
§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Returns the builder as a mutable Any
reference.
§fn into_box_any(self: Box<NullBuilder>) -> Box<dyn Any>
fn into_box_any(self: Box<NullBuilder>) -> Box<dyn Any>
Returns the boxed builder as a box of Any
.
§fn finish_cloned(&self) -> Arc<dyn Array>
fn finish_cloned(&self) -> Arc<dyn Array>
Builds the array without resetting the builder.
§impl Debug for NullBuilder
impl Debug for NullBuilder
§impl Default for NullBuilder
impl Default for NullBuilder
§fn default() -> NullBuilder
fn default() -> NullBuilder
Returns the “default value” for a type. Read more
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