Struct ncursesw::WideString
source · [−]pub struct WideString { /* private fields */ }
Expand description
Wide character string (UTF-8).
Implementations
sourceimpl WideString
impl WideString
pub fn new() -> Self
pub fn from_str<S: Into<String>>(str: S) -> Self
👎 Deprecated since 0.6.4:
use From
trait instead!
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: WideChar)
pub fn truncate(&mut self, new_len: usize)
pub fn pop(&mut self) -> Option<WideChar>
pub fn remove(&mut self, idx: usize) -> WideChar
pub fn insert(&mut self, idx: usize, ch: WideChar)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations
sourceimpl AsMut<WideString> for WideString
impl AsMut<WideString> for WideString
sourceimpl AsRef<WideString> for WideString
impl AsRef<WideString> for WideString
sourceimpl Clone for WideString
impl Clone for WideString
sourcefn clone(&self) -> WideString
fn clone(&self) -> WideString
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 WideString
impl Debug for WideString
sourceimpl Default for WideString
impl Default for WideString
sourceimpl Hash for WideString
impl Hash for WideString
sourceimpl PartialEq<WideString> for WideString
impl PartialEq<WideString> for WideString
sourcefn eq(&self, other: &WideString) -> bool
fn eq(&self, other: &WideString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WideString) -> bool
fn ne(&self, other: &WideString) -> bool
This method tests for !=
.
impl Eq for WideString
impl StructuralEq for WideString
impl StructuralPartialEq for WideString
Auto Trait Implementations
impl RefUnwindSafe for WideString
impl Send for WideString
impl Sync for WideString
impl Unpin for WideString
impl UnwindSafe for WideString
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