pub struct ComplexString { /* private fields */ }
Expand description
Complex character string (wide characters and renditions).
Implementations§
Source§impl ComplexString
impl ComplexString
pub fn new() -> ComplexString
pub fn from_wide_string<A, P, T>( str: &WideString, attrs: &A, color_pair: &P, ) -> Result<ComplexString, NCurseswError>
pub fn from_str<S, A, P, T>( str: S, attrs: &A, color_pair: &P, ) -> Result<ComplexString, NCurseswError>
pub fn with_capacity(capacity: usize) -> ComplexString
pub fn push_str(&mut self, rhs: &ComplexString)
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: &ComplexChar)
pub fn truncate(&mut self, new_len: usize)
pub fn pop(&mut self) -> Option<ComplexChar>
pub fn remove(&mut self, idx: usize) -> ComplexChar
pub fn insert(&mut self, idx: usize, ch: ComplexChar)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Source§impl AsMut<ComplexString> for ComplexString
impl AsMut<ComplexString> for ComplexString
Source§fn as_mut(&mut self) -> &mut ComplexString
fn as_mut(&mut self) -> &mut ComplexString
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ComplexString> for ComplexString
impl AsRef<ComplexString> for ComplexString
Source§fn as_ref(&self) -> &ComplexString
fn as_ref(&self) -> &ComplexString
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ComplexString
impl Clone for ComplexString
Source§fn clone(&self) -> ComplexString
fn clone(&self) -> ComplexString
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 ComplexString
impl Debug for ComplexString
Source§impl Default for ComplexString
impl Default for ComplexString
Source§fn default() -> ComplexString
fn default() -> ComplexString
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a [cchar_t]> for ComplexString
impl<'a> From<&'a [cchar_t]> for ComplexString
Source§fn from(slice: &'a [cchar_t]) -> ComplexString
fn from(slice: &'a [cchar_t]) -> ComplexString
Converts to this type from the input type.
Source§impl<'a> From<&'a Vec<ComplexChar>> for ComplexString
impl<'a> From<&'a Vec<ComplexChar>> for ComplexString
Source§fn from(vwch: &'a Vec<ComplexChar>) -> ComplexString
fn from(vwch: &'a Vec<ComplexChar>) -> ComplexString
Converts to this type from the input type.
Source§impl Hash for ComplexString
impl Hash for ComplexString
Source§impl Into<Vec<ComplexChar>> for ComplexString
impl Into<Vec<ComplexChar>> for ComplexString
Source§fn into(self) -> Vec<ComplexChar>
fn into(self) -> Vec<ComplexChar>
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ComplexString
impl PartialEq for ComplexString
impl Eq for ComplexString
impl StructuralPartialEq for ComplexString
Auto Trait Implementations§
impl Freeze for ComplexString
impl RefUnwindSafe for ComplexString
impl Send for ComplexString
impl Sync for ComplexString
impl Unpin for ComplexString
impl UnwindSafe for ComplexString
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