pub type TString = Text<String>;Available on crate feature
alloc only.Aliased Type§
pub struct TString { /* private fields */ }Implementations§
Source§impl TString
impl TString
pub const fn from_string1_unchecked(text: String1) -> Self
pub fn into_string1(self) -> String1
pub fn pop_char_or(&mut self) -> PopOr<'_, char>
pub fn pop_grapheme_or(&mut self) -> PopOr<'_, Grapheme<'_>>
pub fn leak<'a>(self) -> &'a TStr
pub fn as_tstr(&self) -> &TStr
pub fn as_mut_tstr(&mut self) -> &mut TStr
Methods from Deref<Target = TStr>§
pub fn into_tstring(self: BoxedTStr) -> TString
pub fn to_tstring(&self) -> TString
pub fn graphemes1(&self) -> Iterator1<Peekable<Graphemes<'_>>>
pub fn grapheme_indices1(&self) -> Iterator1<Peekable<GraphemeIndices<'_>>>
pub fn as_str1(&self) -> &Str1
pub fn as_mut_str1(&mut self) -> &mut Str1
pub fn as_str(&self) -> &str
pub fn as_mut_str(&mut self) -> &mut str
pub fn pop_char_or(&mut self) -> PopOr<'_, char>
pub fn pop_grapheme_or(&mut self) -> PopOr<'_, Grapheme<'_>>
pub fn as_tstr(&self) -> &TStr
pub fn as_mut_tstr(&mut self) -> &mut TStr
Trait Implementations§
Source§impl BorrowMut<Text<str>> for TString
impl BorrowMut<Text<str>> for TString
Source§fn borrow_mut(&mut self) -> &mut TStr
fn borrow_mut(&mut self) -> &mut TStr
Mutably borrows from an owned value. Read more