Struct rant::RantString[][src]

pub struct RantString { /* fields omitted */ }

Represents Rant’s string type.

Implementations

impl RantString[src]

pub fn new() -> Self[src]

Creates a new, empty string.

impl RantString[src]

pub fn reversed(&self) -> Self[src]

Creates a copy of the string with the graphemes in reverse order.

pub fn as_str(&self) -> &str[src]

Gets a reference to the string as a string slice.

pub fn grapheme_at(&self, index: usize) -> Option<RantString>[src]

Gets the grapheme string at the specified index.

pub fn to_rant_list(&self) -> RantList[src]

Splits the string into individual graphemes and returns them as a Rant list.

pub fn to_slice(
    &self,
    start: Option<usize>,
    end: Option<usize>
) -> Option<RantString>
[src]

Gets the string at the specified slice.

impl RantString[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Add<RantString> for RantString[src]

type Output = RantString

The resulting type after applying the + operator.

impl Clone for RantString[src]

impl Debug for RantString[src]

impl Default for RantString[src]

impl Display for RantString[src]

impl From<&'_ String> for RantString[src]

impl From<&'_ str> for RantString[src]

impl From<SmartString<Compact>> for RantString[src]

impl From<String> for RantString[src]

impl From<char> for RantString[src]

impl FromRant for RantString[src]

impl IntoRant for RantString[src]

impl PartialEq<RantString> for RantString[src]

impl PartialOrd<RantString> for RantString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,