Struct ncursesw::ComplexString
source · [−]pub struct ComplexString { /* private fields */ }
Expand description
Complex character string (wide characters and renditions).
Implementations
sourceimpl ComplexString
impl ComplexString
pub fn new() -> Self
pub fn from_wide_string<A, P, T>(
str: &WideString,
attrs: &A,
color_pair: &P
) -> Result<Self, NCurseswError> where
A: AttributesType<T>,
P: ColorPairType<T>,
T: ColorAttributeTypes,
pub fn from_str<S, A, P, T>(
str: S,
attrs: &A,
color_pair: &P
) -> Result<Self, NCurseswError> where
S: Into<String>,
A: AttributesType<T>,
P: ColorPairType<T>,
T: ColorAttributeTypes,
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: &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
sourceimpl AsMut<ComplexString> for ComplexString
impl AsMut<ComplexString> for ComplexString
sourceimpl AsRef<ComplexString> for ComplexString
impl AsRef<ComplexString> for ComplexString
sourceimpl Clone for ComplexString
impl Clone for ComplexString
sourcefn clone(&self) -> ComplexString
fn clone(&self) -> ComplexString
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 ComplexString
impl Debug for ComplexString
sourceimpl Default for ComplexString
impl Default for ComplexString
sourceimpl<'a> From<&'a Vec<ComplexChar, Global>> for ComplexString
impl<'a> From<&'a Vec<ComplexChar, Global>> for ComplexString
sourcefn from(vwch: &'a Vec<ComplexChar>) -> Self
fn from(vwch: &'a Vec<ComplexChar>) -> Self
Performs the conversion.
sourceimpl Hash for ComplexString
impl Hash for ComplexString
sourceimpl Into<Vec<ComplexChar, Global>> for ComplexString
impl Into<Vec<ComplexChar, Global>> for ComplexString
sourcefn into(self) -> Vec<ComplexChar>
fn into(self) -> Vec<ComplexChar>
Performs the conversion.
sourceimpl PartialEq<ComplexString> for ComplexString
impl PartialEq<ComplexString> for ComplexString
sourcefn eq(&self, other: &ComplexString) -> bool
fn eq(&self, other: &ComplexString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComplexString) -> bool
fn ne(&self, other: &ComplexString) -> bool
This method tests for !=
.
impl Eq for ComplexString
impl StructuralEq for ComplexString
impl StructuralPartialEq for ComplexString
Auto Trait Implementations
impl RefUnwindSafe for ComplexString
impl Send for ComplexString
impl Sync for ComplexString
impl Unpin for ComplexString
impl UnwindSafe for ComplexString
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