Struct ncursesw::ChtypeString
source · [−]pub struct ChtypeString { /* private fields */ }
Expand description
Ascii string and rendition.
Implementations
sourceimpl ChtypeString
impl ChtypeString
pub fn new() -> Self
pub fn from_ascii_string(str: &AsciiString) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push_str(&mut self, rhs: &Self)
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
sourceimpl AsMut<ChtypeString> for ChtypeString
impl AsMut<ChtypeString> for ChtypeString
sourceimpl AsRef<ChtypeString> for ChtypeString
impl AsRef<ChtypeString> for ChtypeString
sourceimpl BitOr<Attribute> for ChtypeString
impl BitOr<Attribute> for ChtypeString
sourceimpl BitOr<Attributes> for ChtypeString
impl BitOr<Attributes> for ChtypeString
sourceimpl BitXor<Attribute> for ChtypeString
impl BitXor<Attribute> for ChtypeString
sourceimpl BitXor<Attributes> for ChtypeString
impl BitXor<Attributes> for ChtypeString
sourceimpl Clone for ChtypeString
impl Clone for ChtypeString
sourcefn clone(&self) -> ChtypeString
fn clone(&self) -> ChtypeString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChtypeString
impl Debug for ChtypeString
sourceimpl Default for ChtypeString
impl Default for ChtypeString
sourceimpl Hash for ChtypeString
impl Hash for ChtypeString
sourceimpl PartialEq<ChtypeString> for ChtypeString
impl PartialEq<ChtypeString> for ChtypeString
sourcefn eq(&self, other: &ChtypeString) -> bool
fn eq(&self, other: &ChtypeString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChtypeString) -> bool
fn ne(&self, other: &ChtypeString) -> bool
This method tests for !=
.
impl Eq for ChtypeString
impl StructuralEq for ChtypeString
impl StructuralPartialEq for ChtypeString
Auto Trait Implementations
impl RefUnwindSafe for ChtypeString
impl Send for ChtypeString
impl Sync for ChtypeString
impl Unpin for ChtypeString
impl UnwindSafe for ChtypeString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more