pub struct Utf8Container<S = Cow>where
S: Storage,{ /* private fields */ }Implementations§
Source§impl Utf8Container
impl Utf8Container
pub fn new(data: Vec<String>) -> Utf8Container
pub fn from_vec(data: Vec<String>) -> Utf8Container
pub fn with_capacity(capacity: usize) -> Utf8Container
pub fn from_raw_parts(data: Vec<String>) -> Utf8Container
pub fn from_bytes_offsets(data: Vec<u8>, offsets: Vec<u64>) -> Utf8Container
pub fn try_into_raw_parts(self) -> Option<Vec<String>>
Source§impl<S> Utf8Container<S>where
S: Storage,
impl<S> Utf8Container<S>where
S: Storage,
pub fn from_inner(inner: VarlenContainer<S>) -> Utf8Container<S>
pub fn from_storage_parts( data: <S as Storage>::Vec<u8>, offsets: <S as Storage>::Vec<u64>, ) -> Utf8Container<S>
pub fn data_storage(&self) -> &<S as Storage>::Vec<u8>
pub fn offsets_storage(&self) -> &<S as Storage>::Vec<u64>
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn get(&self, index: usize) -> Option<&str>
pub fn is_defined(&self, idx: usize) -> bool
pub fn is_fully_defined(&self) -> bool
pub fn data_bytes(&self) -> &[u8] ⓘ
pub fn offsets(&self) -> &[u64]
pub fn inner(&self) -> &VarlenContainer<S>
pub fn as_string(&self, index: usize) -> String
pub fn get_value(&self, index: usize) -> Value
pub fn iter(&self) -> impl Iterator<Item = Option<&str>>
pub fn iter_str(&self) -> impl Iterator<Item = &str>
Source§impl Utf8Container
impl Utf8Container
pub fn push(&mut self, value: String)
pub fn push_str(&mut self, value: &str)
pub fn push_default(&mut self)
pub fn extend(&mut self, other: &Utf8Container) -> Result<(), Error>
pub fn slice(&self, start: usize, end: usize) -> Utf8Container
pub fn filter(&mut self, mask: &<Cow as Storage>::BitVec)
pub fn reorder(&mut self, indices: &[usize])
pub fn take(&self, num: usize) -> Utf8Container
Trait Implementations§
Source§impl<S> Clone for Utf8Container<S>where
S: Storage,
impl<S> Clone for Utf8Container<S>where
S: Storage,
Source§fn clone(&self) -> Utf8Container<S>
fn clone(&self) -> Utf8Container<S>
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<S> Debug for Utf8Container<S>
impl<S> Debug for Utf8Container<S>
Source§impl Default for Utf8Container
impl Default for Utf8Container
Source§fn default() -> Utf8Container
fn default() -> Utf8Container
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Utf8Container
impl<'de> Deserialize<'de> for Utf8Container
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Utf8Container, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Utf8Container, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S> PartialEq for Utf8Container<S>
impl<S> PartialEq for Utf8Container<S>
Source§fn eq(&self, other: &Utf8Container<S>) -> bool
fn eq(&self, other: &Utf8Container<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Utf8Container
impl Serialize for Utf8Container
Source§fn serialize<Ser>(
&self,
serializer: Ser,
) -> Result<<Ser as Serializer>::Ok, <Ser as Serializer>::Error>where
Ser: Serializer,
fn serialize<Ser>(
&self,
serializer: Ser,
) -> Result<<Ser as Serializer>::Ok, <Ser as Serializer>::Error>where
Ser: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<S> Freeze for Utf8Container<S>
impl<S> RefUnwindSafe for Utf8Container<S>
impl<S> Send for Utf8Container<S>
impl<S> Sync for Utf8Container<S>
impl<S> Unpin for Utf8Container<S>
impl<S> UnsafeUnpin for Utf8Container<S>
impl<S> UnwindSafe for Utf8Container<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more