Struct arrow::ffi::FFI_ArrowSchema
source · [−]#[repr(C)]pub struct FFI_ArrowSchema { /* private fields */ }
Expand description
ABI-compatible struct for ArrowSchema
from C Data Interface
See https://arrow.apache.org/docs/format/CDataInterface.html#structure-definitions
This was created by bindgen
Implementations
sourceimpl FFI_ArrowSchema
impl FFI_ArrowSchema
sourcepub fn try_new(
format: &str,
children: Vec<FFI_ArrowSchema>,
dictionary: Option<FFI_ArrowSchema>
) -> Result<Self>
pub fn try_new(
format: &str,
children: Vec<FFI_ArrowSchema>,
dictionary: Option<FFI_ArrowSchema>
) -> Result<Self>
create a new FFI_ArrowSchema
. This fails if the fields’
DataType
is not supported.
pub fn with_name(self, name: &str) -> Result<Self>
pub fn with_flags(self, flags: Flags) -> Result<Self>
pub fn empty() -> Self
pub fn flags(&self) -> Option<Flags>
pub fn child(&self, index: usize) -> &Self
pub fn children(&self) -> impl Iterator<Item = &Self>
pub fn nullable(&self) -> bool
pub fn dictionary(&self) -> Option<&Self>
Trait Implementations
sourceimpl Clone for FFI_ArrowSchema
impl Clone for FFI_ArrowSchema
sourcefn clone(&self) -> FFI_ArrowSchema
fn clone(&self) -> FFI_ArrowSchema
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FFI_ArrowSchema
impl Debug for FFI_ArrowSchema
sourceimpl Drop for FFI_ArrowSchema
impl Drop for FFI_ArrowSchema
sourceimpl TryFrom<&'_ DataType> for FFI_ArrowSchema
impl TryFrom<&'_ DataType> for FFI_ArrowSchema
sourceimpl TryFrom<&'_ FFI_ArrowSchema> for DataType
impl TryFrom<&'_ FFI_ArrowSchema> for DataType
sourcefn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
fn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&'_ FFI_ArrowSchema> for Field
impl TryFrom<&'_ FFI_ArrowSchema> for Field
type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
sourcefn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
fn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
Performs the conversion.
sourceimpl TryFrom<&'_ FFI_ArrowSchema> for Schema
impl TryFrom<&'_ FFI_ArrowSchema> for Schema
type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
sourcefn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
fn try_from(c_schema: &FFI_ArrowSchema) -> Result<Self>
Performs the conversion.
sourceimpl TryFrom<&'_ Field> for FFI_ArrowSchema
impl TryFrom<&'_ Field> for FFI_ArrowSchema
sourceimpl TryFrom<&'_ Schema> for FFI_ArrowSchema
impl TryFrom<&'_ Schema> for FFI_ArrowSchema
sourceimpl TryFrom<DataType> for FFI_ArrowSchema
impl TryFrom<DataType> for FFI_ArrowSchema
sourceimpl TryFrom<Field> for FFI_ArrowSchema
impl TryFrom<Field> for FFI_ArrowSchema
sourceimpl TryFrom<Schema> for FFI_ArrowSchema
impl TryFrom<Schema> for FFI_ArrowSchema
Auto Trait Implementations
impl RefUnwindSafe for FFI_ArrowSchema
impl !Send for FFI_ArrowSchema
impl !Sync for FFI_ArrowSchema
impl Unpin for FFI_ArrowSchema
impl UnwindSafe for FFI_ArrowSchema
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more