pub struct Utf8Container { /* private fields */ }Implementations§
Source§impl Utf8Container
impl Utf8Container
pub fn new(data: Vec<String>) -> Self
pub fn from_vec(data: Vec<String>) -> Self
pub fn from_repeated_str(value: &str, count: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn from_raw_parts(data: Vec<String>) -> Self
pub fn from_bytes_offsets(data: Vec<u8>, offsets: Vec<u64>) -> Self
pub fn try_into_raw_parts(self) -> Option<Vec<String>>
Source§impl Utf8Container
impl Utf8Container
pub fn from_inner(inner: VarlenContainer) -> Self
pub fn from_storage_parts(data: Vec<u8>, offsets: Vec<u64>) -> Self
pub fn data_storage(&self) -> &Vec<u8> ⓘ
pub fn offsets_storage(&self) -> &Vec<u64>
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn heap_size(&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
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: &Self) -> Result<()>
pub fn slice(&self, start: usize, end: usize) -> Self
pub fn filter(&mut self, mask: &BitVec)
pub fn reorder(&mut self, indices: &[usize])
pub fn take(&self, num: usize) -> Self
Trait Implementations§
Source§impl Clone for Utf8Container
impl Clone for Utf8Container
Source§impl Debug for Utf8Containerwhere
VarlenContainer: Debug,
impl Debug for Utf8Containerwhere
VarlenContainer: Debug,
Source§impl Default for Utf8Container
impl Default for Utf8Container
Source§impl<'de> Deserialize<'de> for Utf8Container
impl<'de> Deserialize<'de> for Utf8Container
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> StdResult<Self, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Utf8Containerwhere
VarlenContainer: PartialEq,
impl PartialEq for Utf8Containerwhere
VarlenContainer: PartialEq,
Auto Trait Implementations§
impl Freeze for Utf8Container
impl RefUnwindSafe for Utf8Container
impl Send for Utf8Container
impl Sync for Utf8Container
impl Unpin for Utf8Container
impl UnsafeUnpin for Utf8Container
impl UnwindSafe for Utf8Container
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