pub struct IndexedString { /* private fields */ }
Expand description
The IndexedString provides an efficient random access over DynamicStrings it should be used when there are frequent random accesses on the same string.
Implementations§
Source§impl IndexedString
impl IndexedString
Sourcepub fn new(string: DynamicString) -> Self
pub fn new(string: DynamicString) -> Self
Creates a new IndexedString from a DynamicString.
Trait Implementations§
Source§impl Clone for IndexedString
impl Clone for IndexedString
Source§fn clone(&self) -> IndexedString
fn clone(&self) -> IndexedString
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 IndexedString
impl Debug for IndexedString
Source§impl From<&DynamicString> for IndexedString
impl From<&DynamicString> for IndexedString
Source§fn from(string: &DynamicString) -> Self
fn from(string: &DynamicString) -> Self
Converts to this type from the input type.
Source§impl From<DynamicString> for IndexedString
impl From<DynamicString> for IndexedString
Source§fn from(string: DynamicString) -> Self
fn from(string: DynamicString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexedString
impl RefUnwindSafe for IndexedString
impl Send for IndexedString
impl Sync for IndexedString
impl Unpin for IndexedString
impl UnwindSafe for IndexedString
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