pub struct GenericByteBuilder<T: ByteArrayType> { /* private fields */ }
Expand description

Array builder for GenericByteArray

Implementations§

Creates a new GenericByteBuilder.

Creates a new GenericByteBuilder.

  • 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 data to pre-allocate (for all items, not per item).

Appends a value into the builder.

Append an Option value into the builder.

Append a null value into the builder.

Builds the GenericByteArray and reset this builder.

Builds the GenericByteArray without resetting the builder.

Returns the current values buffer as a slice

Returns the current offsets buffer as a slice

Trait Implementations§

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.

Builds the array without resetting the builder.

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.

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.