pub struct ChtypeString { /* private fields */ }
Expand description
Ascii string and rendition.
Implementations§
Source§impl ChtypeString
impl ChtypeString
pub fn new() -> ChtypeString
pub fn from_ascii_string(str: &AsciiString) -> ChtypeString
pub fn with_capacity(capacity: usize) -> ChtypeString
pub fn push_str(&mut self, rhs: &ChtypeString)
pub fn capacity(&self) -> usize
pub fn reserve(&mut self, additional: usize)
pub fn reserve_exact(&mut self, additional: usize)
pub fn shrink_to_fit(&mut self)
pub fn push(&mut self, rhs: ChtypeChar)
pub fn truncate(&mut self, new_len: usize)
pub fn pop(&mut self) -> Option<ChtypeChar>
pub fn remove(&mut self, idx: usize) -> ChtypeChar
pub fn insert(&mut self, idx: usize, ch: ChtypeChar)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Source§impl AsMut<ChtypeString> for ChtypeString
impl AsMut<ChtypeString> for ChtypeString
Source§fn as_mut(&mut self) -> &mut ChtypeString
fn as_mut(&mut self) -> &mut ChtypeString
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ChtypeString> for ChtypeString
impl AsRef<ChtypeString> for ChtypeString
Source§fn as_ref(&self) -> &ChtypeString
fn as_ref(&self) -> &ChtypeString
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl BitOr<Attribute> for ChtypeString
impl BitOr<Attribute> for ChtypeString
Source§impl BitOr<Attributes> for ChtypeString
impl BitOr<Attributes> for ChtypeString
Source§type Output = ChtypeString
type Output = ChtypeString
The resulting type after applying the
|
operator.Source§fn bitor(self, rhs: Attributes) -> <ChtypeString as BitOr<Attributes>>::Output
fn bitor(self, rhs: Attributes) -> <ChtypeString as BitOr<Attributes>>::Output
Performs the
|
operation. Read moreSource§impl BitXor<Attribute> for ChtypeString
impl BitXor<Attribute> for ChtypeString
Source§impl BitXor<Attributes> for ChtypeString
impl BitXor<Attributes> for ChtypeString
Source§type Output = ChtypeString
type Output = ChtypeString
The resulting type after applying the
^
operator.Source§fn bitxor(self, rhs: Attributes) -> <ChtypeString as BitXor<Attributes>>::Output
fn bitxor(self, rhs: Attributes) -> <ChtypeString as BitXor<Attributes>>::Output
Performs the
^
operation. Read moreSource§impl Clone for ChtypeString
impl Clone for ChtypeString
Source§fn clone(&self) -> ChtypeString
fn clone(&self) -> ChtypeString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChtypeString
impl Debug for ChtypeString
Source§impl Default for ChtypeString
impl Default for ChtypeString
Source§fn default() -> ChtypeString
fn default() -> ChtypeString
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a [u32]> for ChtypeString
impl<'a> From<&'a [u32]> for ChtypeString
Source§fn from(slice: &'a [u32]) -> ChtypeString
fn from(slice: &'a [u32]) -> ChtypeString
Converts to this type from the input type.
Source§impl Hash for ChtypeString
impl Hash for ChtypeString
Source§impl PartialEq for ChtypeString
impl PartialEq for ChtypeString
impl Eq for ChtypeString
impl StructuralPartialEq for ChtypeString
Auto Trait Implementations§
impl Freeze for ChtypeString
impl RefUnwindSafe for ChtypeString
impl Send for ChtypeString
impl Sync for ChtypeString
impl Unpin for ChtypeString
impl UnwindSafe for ChtypeString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more