Struct GenericStringType
pub struct GenericStringType<O>where
O: OffsetSizeTrait,{
phantom: PhantomData<O>,
}
Expand description
ByteArrayType
for string arrays
Fields§
§phantom: PhantomData<O>
Trait Implementations§
§impl<O> ByteArrayType for GenericStringType<O>where
O: OffsetSizeTrait,
impl<O> ByteArrayType for GenericStringType<O>where
O: OffsetSizeTrait,
§type Native = str
type Native = str
Type for representing its equivalent rust type i.e
Utf8Array will have native type has &str
BinaryArray will have type as u8
§fn validate(
offsets: &OffsetBuffer<<GenericStringType<O> as ByteArrayType>::Offset>,
values: &Buffer,
) -> Result<(), ArrowError>
fn validate( offsets: &OffsetBuffer<<GenericStringType<O> as ByteArrayType>::Offset>, values: &Buffer, ) -> Result<(), ArrowError>
Verifies that every consecutive pair of
offsets
denotes a valid slice of values
Auto Trait Implementations§
impl<O> Freeze for GenericStringType<O>
impl<O> RefUnwindSafe for GenericStringType<O>where
O: RefUnwindSafe,
impl<O> Send for GenericStringType<O>
impl<O> Sync for GenericStringType<O>
impl<O> Unpin for GenericStringType<O>where
O: Unpin,
impl<O> UnwindSafe for GenericStringType<O>where
O: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more