Struct structured::Column
source · [−]pub struct Column { /* private fields */ }Expand description
A single column in a table.
Implementations
sourceimpl Column
impl Column
sourcepub fn try_from_slice<T>(slice: &[T::Native]) -> Result<Self> where
T: ArrowPrimitiveType,
pub fn try_from_slice<T>(slice: &[T::Native]) -> Result<Self> where
T: ArrowPrimitiveType,
sourcepub fn iter<'a, T>(&'a self) -> Result<Flatten<IntoIter<&'a T>>, TypeError> where
T: Array + 'static,
&'a T: IntoIterator,
pub fn iter<'a, T>(&'a self) -> Result<Flatten<IntoIter<&'a T>>, TypeError> where
T: Array + 'static,
&'a T: IntoIterator,
Creates an iterator iterating over all the cells in this Column.
Errors
Returns an error if the type parameter does not match with the type of
this Column.
sourcepub fn primitive_iter<'a, 'b, T>(
&'a self,
selected: &'b [usize]
) -> Result<PrimitiveIter<'a, 'b, T>, TypeError> where
T: ArrowPrimitiveType,
pub fn primitive_iter<'a, 'b, T>(
&'a self,
selected: &'b [usize]
) -> Result<PrimitiveIter<'a, 'b, T>, TypeError> where
T: ArrowPrimitiveType,
Creates an iterator iterating over a subset of the cells in this
Column of primitive type, designated by selected.
Errors
Returns an error if the type parameter does not match with the type of
this Column.
sourcepub fn binary_iter<'a, 'b>(
&'a self,
selected: &'b [usize]
) -> Result<BinaryIter<'a, 'b>, TypeError>
pub fn binary_iter<'a, 'b>(
&'a self,
selected: &'b [usize]
) -> Result<BinaryIter<'a, 'b>, TypeError>
Creates an iterator iterating over a subset of the cells in this
Column of binaries, designated by selected.
Errors
Returns an error if the type parameter does not match with the type of
this Column.
sourcepub fn string_iter<'a, 'b>(
&'a self,
selected: &'b [usize]
) -> Result<StringIter<'a, 'b>, TypeError>
pub fn string_iter<'a, 'b>(
&'a self,
selected: &'b [usize]
) -> Result<StringIter<'a, 'b>, TypeError>
Creates an iterator iterating over a subset of the cells in this
Column of strings, designated by selected.
Errors
Returns an error if the type parameter does not match with the type of
this Column.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl !UnwindSafe for Column
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more