DynCellRef

Struct DynCellRef 

Source
pub struct DynCellRef<'a> { /* private fields */ }
Expand description

Borrowed representation of a single value backed by a raw pointer payload.

Implementations§

Source§

impl<'a> DynCellRef<'a>

Source

pub fn from_raw(raw: DynCellRaw) -> Self

Create a new borrowed cell from its raw lifetime-erased payload.

Source

pub fn as_raw(&self) -> &DynCellRaw

Access the underlying raw representation.

Source

pub fn into_raw(self) -> DynCellRaw

Consume this reference, yielding the raw payload.

Source

pub fn into_owned(self) -> Result<DynCell, DynViewError>

Convert this borrowed cell into an owned DynCell, cloning any backing data as needed.

Source

pub fn to_owned(&self) -> Result<DynCell, DynViewError>

Clone this borrowed cell into an owned DynCell without consuming the reference.

Source

pub fn is_null(&self) -> bool

Returns true if this cell represents Arrow Null.

Source

pub fn as_bool(&self) -> Option<bool>

Returns the boolean value if this cell stores an Arrow boolean.

Source

pub fn into_bool(self) -> Option<bool>

Consumes the cell and returns the boolean value if it stores an Arrow boolean.

Source

pub fn as_i8(&self) -> Option<i8>

Returns the i8 value if this cell stores an Arrow Int8.

Source

pub fn into_i8(self) -> Option<i8>

Consumes the cell and returns the i8 value if it stores an Arrow Int8.

Source

pub fn as_i16(&self) -> Option<i16>

Returns the i16 value if this cell stores an Arrow Int16.

Source

pub fn into_i16(self) -> Option<i16>

Consumes the cell and returns the i16 value if it stores an Arrow Int16.

Source

pub fn as_i32(&self) -> Option<i32>

Returns the i32 value if this cell stores an Arrow Int32.

Source

pub fn into_i32(self) -> Option<i32>

Consumes the cell and returns the i32 value if it stores an Arrow Int32.

Source

pub fn as_i64(&self) -> Option<i64>

Returns the i64 value if this cell stores an Arrow Int64.

Source

pub fn into_i64(self) -> Option<i64>

Consumes the cell and returns the i64 value if it stores an Arrow Int64.

Source

pub fn as_u8(&self) -> Option<u8>

Returns the u8 value if this cell stores an Arrow UInt8.

Source

pub fn into_u8(self) -> Option<u8>

Consumes the cell and returns the u8 value if it stores an Arrow UInt8.

Source

pub fn as_u16(&self) -> Option<u16>

Returns the u16 value if this cell stores an Arrow UInt16.

Source

pub fn into_u16(self) -> Option<u16>

Consumes the cell and returns the u16 value if it stores an Arrow UInt16.

Source

pub fn as_u32(&self) -> Option<u32>

Returns the u32 value if this cell stores an Arrow UInt32.

Source

pub fn into_u32(self) -> Option<u32>

Consumes the cell and returns the u32 value if it stores an Arrow UInt32.

Source

pub fn as_u64(&self) -> Option<u64>

Returns the u64 value if this cell stores an Arrow UInt64.

Source

pub fn into_u64(self) -> Option<u64>

Consumes the cell and returns the u64 value if it stores an Arrow UInt64.

Source

pub fn as_f32(&self) -> Option<f32>

Returns the f32 value if this cell stores an Arrow Float32.

Source

pub fn into_f32(self) -> Option<f32>

Consumes the cell and returns the f32 value if it stores an Arrow Float32.

Source

pub fn as_f64(&self) -> Option<f64>

Returns the f64 value if this cell stores an Arrow Float64.

Source

pub fn into_f64(self) -> Option<f64>

Consumes the cell and returns the f64 value if it stores an Arrow Float64.

Source

pub fn as_str(&self) -> Option<&'a str>

Returns the UTF-8 string slice if this cell stores Arrow Utf8 or LargeUtf8.

Source

pub fn as_bin(&self) -> Option<&'a [u8]>

Returns the binary slice if this cell stores Arrow Binary, LargeBinary, or FixedSizeBinary.

Source

pub fn as_struct(&self) -> Option<DynStructView<'a>>

Returns a struct view if this cell stores Arrow Struct.

Source

pub fn as_list(&self) -> Option<DynListView<'a>>

Returns a list view if this cell stores Arrow List or LargeList.

Source

pub fn as_fixed_size_list(&self) -> Option<DynFixedSizeListView<'a>>

Returns a fixed-size list view if this cell stores Arrow FixedSizeList.

Source

pub fn as_map(&self) -> Option<DynMapView<'a>>

Returns a map view if this cell stores Arrow Map.

Source

pub fn as_union(&self) -> Option<DynUnionView<'a>>

Returns a union view if this cell stores Arrow Union.

Source

pub fn into_str(self) -> Option<&'a str>

Consumes the cell and returns the UTF-8 string slice if it stores Arrow Utf8 or LargeUtf8.

Source

pub fn into_bin(self) -> Option<&'a [u8]>

Consumes the cell and returns the binary slice if it stores Arrow Binary, LargeBinary, or FixedSizeBinary.

Source

pub fn into_struct(self) -> Option<DynStructView<'a>>

Consumes the cell and returns a struct view if it stores Arrow Struct.

Source

pub fn into_list(self) -> Option<DynListView<'a>>

Consumes the cell and returns a list view if it stores Arrow List or LargeList.

Source

pub fn into_fixed_size_list(self) -> Option<DynFixedSizeListView<'a>>

Consumes the cell and returns a fixed-size list view if it stores Arrow FixedSizeList.

Source

pub fn into_map(self) -> Option<DynMapView<'a>>

Consumes the cell and returns a map view if it stores Arrow Map.

Source

pub fn into_union(self) -> Option<DynUnionView<'a>>

Consumes the cell and returns a union view if it stores Arrow Union.

Trait Implementations§

Source§

impl<'a> Clone for DynCellRef<'a>

Source§

fn clone(&self) -> DynCellRef<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for DynCellRef<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<DynCellRaw> for DynCellRef<'a>

Source§

fn from(raw: DynCellRaw) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for DynCellRef<'a>

§

impl<'a> !RefUnwindSafe for DynCellRef<'a>

§

impl<'a> Send for DynCellRef<'a>

§

impl<'a> Sync for DynCellRef<'a>

§

impl<'a> Unpin for DynCellRef<'a>

§

impl<'a> !UnwindSafe for DynCellRef<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.