pub struct GenericBinaryBuilder<OffsetSize>where
    OffsetSize: OffsetSizeTrait,
{ /* private fields */ }
Expand description

Array builder for GenericBinaryArray

Implementations

Creates a new GenericBinaryBuilder.

Creates a new GenericBinaryBuilder.

  • item_capacity is the number of items to pre-allocate. The size of the preallocated buffer of offsets is the number of items plus one.
  • data_capacity is the total number of bytes of string data to pre-allocate (for all items, not per item).

Appends a byte slice into the builder.

Append a null value into the builder.

Builds the GenericBinaryArray and reset this builder.

Returns the current values buffer as a slice

Returns the current offsets buffer as a slice

Trait Implementations

Returns the builder as a non-mutable Any reference.

Returns the builder as a mutable Any reference.

Returns the boxed builder as a box of Any.

Returns the number of binary slots in the builder

Returns whether the number of binary slots is zero

Builds the array and reset this builder.

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.