Struct rant::RantString [−][src]
Represents Rant’s string
type.
Implementations
impl RantString
[src]
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]
&self,
start: Option<usize>,
end: Option<usize>
) -> Option<RantString>
Gets the string at the specified slice.
impl RantString
[src]
Trait Implementations
impl Add<RantString> for RantString
[src]
type Output = RantString
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Clone for RantString
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(s: CompactString) -> Self
[src]
impl From<String> for RantString
[src]
impl From<char> for RantString
[src]
impl IntoRant for RantString
[src]
fn into_rant(self) -> Result<RantValue, ValueError>
[src]
impl PartialEq<RantString> for RantString
[src]
impl PartialOrd<RantString> for RantString
[src]
Auto Trait Implementations
impl RefUnwindSafe for RantString
impl Send for RantString
impl Sync for RantString
impl Unpin for RantString
impl UnwindSafe for RantString
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,