pub struct DictString(pub String);Expand description
Dictionary-encoded Utf8 (Dictionary(Int16, Utf8)) wire type.
On the user-facing side it’s just a String; the newtype controls
the schema choice.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for DictString
impl Clone for DictString
Source§fn clone(&self) -> DictString
fn clone(&self) -> DictString
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 Debug for DictString
impl Debug for DictString
impl Eq for DictString
Source§impl From<DictString> for String
impl From<DictString> for String
Source§fn from(s: DictString) -> Self
fn from(s: DictString) -> Self
Converts to this type from the input type.
Source§impl From<String> for DictString
impl From<String> for DictString
Source§impl PartialEq for DictString
impl PartialEq for DictString
Source§fn eq(&self, other: &DictString) -> bool
fn eq(&self, other: &DictString) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DictString
Source§impl VgiArrow for DictString
impl VgiArrow for DictString
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 Freeze for DictString
impl RefUnwindSafe for DictString
impl Send for DictString
impl Sync for DictString
impl Unpin for DictString
impl UnsafeUnpin for DictString
impl UnwindSafe for DictString
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