Struct re_types::ArrowString
source · pub struct ArrowString(pub Buffer<u8>);Expand description
Convenience-wrapper around an arrow Buffer that is known to contain a
string.
The arrow2 Buffer object is internally reference-counted and can be
easily converted back to a &str referencing the underlying storage.
This avoids some of the lifetime complexities that would otherwise
arise from returning a &str directly, but is significantly more
performant than doing the full allocation necessary to return a String.
Tuple Fields§
§0: Buffer<u8>Implementations§
Trait Implementations§
source§impl Clone for ArrowString
impl Clone for ArrowString
source§fn clone(&self) -> ArrowString
fn clone(&self) -> ArrowString
Returns a copy of the value. Read more
1.0.0 · 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 ArrowString
impl Debug for ArrowString
source§impl Default for ArrowString
impl Default for ArrowString
source§fn default() -> ArrowString
fn default() -> ArrowString
Returns the “default value” for a type. Read more
source§impl From<&str> for ArrowString
impl From<&str> for ArrowString
source§impl From<String> for ArrowString
impl From<String> for ArrowString
source§impl Hash for ArrowString
impl Hash for ArrowString
source§impl Ord for ArrowString
impl Ord for ArrowString
source§impl PartialEq<ArrowString> for ArrowString
impl PartialEq<ArrowString> for ArrowString
source§impl PartialOrd<ArrowString> for ArrowString
impl PartialOrd<ArrowString> for ArrowString
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ArrowString
Auto Trait Implementations§
impl RefUnwindSafe for ArrowString
impl Send for ArrowString
impl Sync for ArrowString
impl Unpin for ArrowString
impl UnwindSafe for ArrowString
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