Struct rant::RantString [−][src]
pub struct RantString { /* fields omitted */ }
Represents Rant’s string
type.
Implementations
impl RantString
[src]
impl RantString
[src]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.
Trait Implementations
impl Add<RantString> for RantString
[src]
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]
impl Clone for RantString
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for RantString
[src]
impl Default for RantString
[src]impl From<SmartString<Compact>> for RantString
[src]
impl From<SmartString<Compact>> for RantString
[src]fn from(s: CompactString) -> Self
[src]
impl FromRant for RantString
[src]
impl FromRant for RantString
[src]fn from_rant(val: RantValue) -> Result<Self, ValueError>
[src]
fn is_rant_optional() -> bool
[src]
impl IntoRant for RantString
[src]
impl IntoRant for RantString
[src]fn into_rant(self) -> Result<RantValue, ValueError>
[src]
impl PartialEq<RantString> for RantString
[src]
impl PartialEq<RantString> for RantString
[src]impl PartialOrd<RantString> for RantString
[src]
impl PartialOrd<RantString> for RantString
[src]Auto Trait Implementations
impl RefUnwindSafe for RantString
impl RefUnwindSafe for RantString
impl Send for RantString
impl Send for RantString
impl Sync for RantString
impl Sync for RantString
impl Unpin for RantString
impl Unpin for RantString
impl UnwindSafe for RantString
impl UnwindSafe for RantString