pub struct StringsNoIndex { /* private fields */ }
Expand description
Store any string efficiently in an immutable way.
Can store at most u32::MAX
strings and only provides
StringsNoIndexIter
and does not provide arbitary indexing.
Implementations§
Source§impl StringsNoIndex
impl StringsNoIndex
pub fn new() -> Self
Sourcepub fn with_capacity(_len: u32) -> Self
pub fn with_capacity(_len: u32) -> Self
len
- number of strings
NOTE that this function does nothing and is defined just to be compatible
with Strings
.
pub fn len(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn reserve_strs(&mut self, cnt: usize)
pub fn shrink_to_fit(&mut self)
pub fn iter(&self) -> StringsNoIndexIter<'_> ⓘ
Trait Implementations§
Source§impl Clone for StringsNoIndex
impl Clone for StringsNoIndex
Source§fn clone(&self) -> StringsNoIndex
fn clone(&self) -> StringsNoIndex
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 StringsNoIndex
impl Debug for StringsNoIndex
Source§impl Default for StringsNoIndex
impl Default for StringsNoIndex
Source§fn default() -> StringsNoIndex
fn default() -> StringsNoIndex
Returns the “default value” for a type. Read more
Source§impl Hash for StringsNoIndex
impl Hash for StringsNoIndex
Source§impl<'a> IntoIterator for &'a StringsNoIndex
impl<'a> IntoIterator for &'a StringsNoIndex
Source§impl PartialEq for StringsNoIndex
impl PartialEq for StringsNoIndex
impl Eq for StringsNoIndex
impl StructuralPartialEq for StringsNoIndex
Auto Trait Implementations§
impl Freeze for StringsNoIndex
impl RefUnwindSafe for StringsNoIndex
impl Send for StringsNoIndex
impl Sync for StringsNoIndex
impl Unpin for StringsNoIndex
impl UnwindSafe for StringsNoIndex
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