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>
impl<'a> DynCellRef<'a>
Sourcepub fn from_raw(raw: DynCellRaw) -> Self
pub fn from_raw(raw: DynCellRaw) -> Self
Create a new borrowed cell from its raw lifetime-erased payload.
Sourcepub fn as_raw(&self) -> &DynCellRaw
pub fn as_raw(&self) -> &DynCellRaw
Access the underlying raw representation.
Sourcepub fn into_raw(self) -> DynCellRaw
pub fn into_raw(self) -> DynCellRaw
Consume this reference, yielding the raw payload.
Sourcepub fn into_owned(self) -> Result<DynCell, DynViewError>
pub fn into_owned(self) -> Result<DynCell, DynViewError>
Convert this borrowed cell into an owned DynCell, cloning any backing data as needed.
Sourcepub fn to_owned(&self) -> Result<DynCell, DynViewError>
pub fn to_owned(&self) -> Result<DynCell, DynViewError>
Clone this borrowed cell into an owned DynCell without consuming the reference.
Sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the boolean value if this cell stores an Arrow boolean.
Sourcepub fn into_bool(self) -> Option<bool>
pub fn into_bool(self) -> Option<bool>
Consumes the cell and returns the boolean value if it stores an Arrow boolean.
Sourcepub fn into_i8(self) -> Option<i8>
pub fn into_i8(self) -> Option<i8>
Consumes the cell and returns the i8 value if it stores an Arrow Int8.
Sourcepub fn into_i16(self) -> Option<i16>
pub fn into_i16(self) -> Option<i16>
Consumes the cell and returns the i16 value if it stores an Arrow Int16.
Sourcepub fn into_i32(self) -> Option<i32>
pub fn into_i32(self) -> Option<i32>
Consumes the cell and returns the i32 value if it stores an Arrow Int32.
Sourcepub fn into_i64(self) -> Option<i64>
pub fn into_i64(self) -> Option<i64>
Consumes the cell and returns the i64 value if it stores an Arrow Int64.
Sourcepub fn into_u8(self) -> Option<u8>
pub fn into_u8(self) -> Option<u8>
Consumes the cell and returns the u8 value if it stores an Arrow UInt8.
Sourcepub fn into_u16(self) -> Option<u16>
pub fn into_u16(self) -> Option<u16>
Consumes the cell and returns the u16 value if it stores an Arrow UInt16.
Sourcepub fn into_u32(self) -> Option<u32>
pub fn into_u32(self) -> Option<u32>
Consumes the cell and returns the u32 value if it stores an Arrow UInt32.
Sourcepub fn into_u64(self) -> Option<u64>
pub fn into_u64(self) -> Option<u64>
Consumes the cell and returns the u64 value if it stores an Arrow UInt64.
Sourcepub fn as_f32(&self) -> Option<f32>
pub fn as_f32(&self) -> Option<f32>
Returns the f32 value if this cell stores an Arrow Float32.
Sourcepub fn into_f32(self) -> Option<f32>
pub fn into_f32(self) -> Option<f32>
Consumes the cell and returns the f32 value if it stores an Arrow Float32.
Sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64 value if this cell stores an Arrow Float64.
Sourcepub fn into_f64(self) -> Option<f64>
pub fn into_f64(self) -> Option<f64>
Consumes the cell and returns the f64 value if it stores an Arrow Float64.
Sourcepub fn as_str(&self) -> Option<&'a str>
pub fn as_str(&self) -> Option<&'a str>
Returns the UTF-8 string slice if this cell stores Arrow Utf8 or LargeUtf8.
Sourcepub fn as_bin(&self) -> Option<&'a [u8]>
pub fn as_bin(&self) -> Option<&'a [u8]>
Returns the binary slice if this cell stores Arrow Binary, LargeBinary, or
FixedSizeBinary.
Sourcepub fn as_struct(&self) -> Option<DynStructView<'a>>
pub fn as_struct(&self) -> Option<DynStructView<'a>>
Returns a struct view if this cell stores Arrow Struct.
Sourcepub fn as_list(&self) -> Option<DynListView<'a>>
pub fn as_list(&self) -> Option<DynListView<'a>>
Returns a list view if this cell stores Arrow List or LargeList.
Sourcepub fn as_fixed_size_list(&self) -> Option<DynFixedSizeListView<'a>>
pub fn as_fixed_size_list(&self) -> Option<DynFixedSizeListView<'a>>
Returns a fixed-size list view if this cell stores Arrow FixedSizeList.
Sourcepub fn as_map(&self) -> Option<DynMapView<'a>>
pub fn as_map(&self) -> Option<DynMapView<'a>>
Returns a map view if this cell stores Arrow Map.
Sourcepub fn as_union(&self) -> Option<DynUnionView<'a>>
pub fn as_union(&self) -> Option<DynUnionView<'a>>
Returns a union view if this cell stores Arrow Union.
Sourcepub fn into_str(self) -> Option<&'a str>
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.
Sourcepub fn into_bin(self) -> Option<&'a [u8]>
pub fn into_bin(self) -> Option<&'a [u8]>
Consumes the cell and returns the binary slice if it stores Arrow Binary, LargeBinary,
or FixedSizeBinary.
Sourcepub fn into_struct(self) -> Option<DynStructView<'a>>
pub fn into_struct(self) -> Option<DynStructView<'a>>
Consumes the cell and returns a struct view if it stores Arrow Struct.
Sourcepub fn into_list(self) -> Option<DynListView<'a>>
pub fn into_list(self) -> Option<DynListView<'a>>
Consumes the cell and returns a list view if it stores Arrow List or LargeList.
Sourcepub fn into_fixed_size_list(self) -> Option<DynFixedSizeListView<'a>>
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.
Sourcepub fn into_map(self) -> Option<DynMapView<'a>>
pub fn into_map(self) -> Option<DynMapView<'a>>
Consumes the cell and returns a map view if it stores Arrow Map.
Sourcepub fn into_union(self) -> Option<DynUnionView<'a>>
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>
impl<'a> Clone for DynCellRef<'a>
Source§fn clone(&self) -> DynCellRef<'a>
fn clone(&self) -> DynCellRef<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more