[−][src]Struct arrow::builder::Builder
Buffer builder with zero-copy build method
Methods
impl<T> Builder<T> where
T: ArrowPrimitiveType,
[src]
impl<T> Builder<T> where
T: ArrowPrimitiveType,
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a builder with a default capacity
pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
Creates a builder with a fixed capacity
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Get the number of elements in the builder
pub fn capacity(&self) -> usize
[src]
pub fn capacity(&self) -> usize
Get the capacity of the builder (number of elements)
pub fn slice_mut(&mut self, start: usize, end: usize) -> &mut [T]
[src]
pub fn slice_mut(&mut self, start: usize, end: usize) -> &mut [T]
Get the internal byte-aligned memory buffer as a mutable slice
pub fn set_len(&mut self, len: usize)
[src]
pub fn set_len(&mut self, len: usize)
Override the length
pub fn push(&mut self, v: T)
[src]
pub fn push(&mut self, v: T)
Push a value into the builder, growing the internal buffer as needed
pub fn set(&mut self, i: usize, v: T)
[src]
pub fn set(&mut self, i: usize, v: T)
Set a value at a slot in the allocated memory without adjusting the length
pub fn push_slice(&mut self, slice: &[T])
[src]
pub fn push_slice(&mut self, slice: &[T])
push a slice of type T, growing the internal buffer as needed
pub fn reserve(&mut self, n: usize)
[src]
pub fn reserve(&mut self, n: usize)
Reserve memory for n elements of type T
pub fn finish(&mut self) -> Buffer
[src]
pub fn finish(&mut self) -> Buffer
Build a Buffer from the existing memory
Trait Implementations
impl<T> Drop for Builder<T> where
T: ArrowPrimitiveType,
[src]
impl<T> Drop for Builder<T> where
T: ArrowPrimitiveType,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more