pub struct FixedBinary<const N: usize>(pub [u8; N]);Expand description
FixedSizeBinary(N) wire type carried as [u8; N]. The const
generic encodes the width so the schema is fully determined.
Tuple Fields§
§0: [u8; N]Trait Implementations§
Source§impl<const N: usize> Clone for FixedBinary<N>
impl<const N: usize> Clone for FixedBinary<N>
Source§fn clone(&self) -> FixedBinary<N>
fn clone(&self) -> FixedBinary<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for FixedBinary<N>
impl<const N: usize> Debug for FixedBinary<N>
impl<const N: usize> Eq for FixedBinary<N>
Source§impl<const N: usize> PartialEq for FixedBinary<N>
impl<const N: usize> PartialEq for FixedBinary<N>
Source§fn eq(&self, other: &FixedBinary<N>) -> bool
fn eq(&self, other: &FixedBinary<N>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const N: usize> StructuralPartialEq for FixedBinary<N>
Source§impl<const N: usize> VgiArrow for FixedBinary<N>
impl<const N: usize> VgiArrow for FixedBinary<N>
Source§fn arrow_data_type() -> DataType
fn arrow_data_type() -> DataType
The Arrow
DataType carrying values of this Rust type.Source§fn describe_name() -> String
fn describe_name() -> String
Wire-format type name surfaced via
__describe__ metadata.
Mirrors Python: "str", "int", "list[int]", "int | None".Source§fn read(arr: &dyn Array, idx: usize) -> Result<Self>
fn read(arr: &dyn Array, idx: usize) -> Result<Self>
Pull this value out of
arr at row idx. Errors with a
RpcError::type_error if arr’s concrete type doesn’t match
Self::arrow_data_type().Source§fn build_singleton(value: Self) -> Result<ArrayRef>
fn build_singleton(value: Self) -> Result<ArrayRef>
Build a 1-row
ArrayRef containing value.Auto Trait Implementations§
impl<const N: usize> Freeze for FixedBinary<N>
impl<const N: usize> RefUnwindSafe for FixedBinary<N>
impl<const N: usize> Send for FixedBinary<N>
impl<const N: usize> Sync for FixedBinary<N>
impl<const N: usize> Unpin for FixedBinary<N>
impl<const N: usize> UnsafeUnpin for FixedBinary<N>
impl<const N: usize> UnwindSafe for FixedBinary<N>
Blanket Implementations§
impl<T> Allocation for T
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