[−][src]Struct dynstr::IndexedString
The IndexedString provides an efficient random access over DynamicStrings it should be used when there are frequent random accesses on the same string.
Implementations
impl IndexedString
[src]
pub fn new(string: DynamicString) -> Self
[src]
Creates a new IndexedString from a DynamicString.
pub fn len(&self) -> usize
[src]
Return length of the string.
pub fn at(&self, index: usize) -> u16
[src]
Return the character at the given index.
Panics
If the index is greater than or equal to the length.
Trait Implementations
impl Clone for IndexedString
[src]
pub fn clone(&self) -> IndexedString
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for IndexedString
[src]
impl<'_> From<&'_ DynamicString> for IndexedString
[src]
pub fn from(string: &DynamicString) -> Self
[src]
impl From<DynamicString> for IndexedString
[src]
pub fn from(string: DynamicString) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for IndexedString
impl Send for IndexedString
impl Sync for IndexedString
impl Unpin for IndexedString
impl UnwindSafe for IndexedString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,