Struct ncurseswwin::WideString
source · [−]pub struct WideString { /* private fields */ }
Expand description
Wide character string (UTF-8).
Implementations
sourceimpl WideString
impl WideString
pub fn new() -> WideString
pub fn from_str<S>(str: S) -> WideString where
S: Into<String>,
👎 Deprecated since 0.6.4:
use From
trait instead!
pub fn with_capacity(capacity: usize) -> WideString
pub fn push_str(&mut self, rhs: &WideString)
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
sourcepub fn as_mut(&mut self) -> &mut WideString
pub fn as_mut(&mut self) -> &mut WideString
Performs the conversion.
sourceimpl AsRef<WideString> for WideString
impl AsRef<WideString> for WideString
sourcepub fn as_ref(&self) -> &WideString
pub fn as_ref(&self) -> &WideString
Performs the conversion.
sourceimpl Clone for WideString
impl Clone for WideString
sourcepub fn clone(&self) -> WideString
pub 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
sourcepub fn default() -> WideString
pub fn default() -> WideString
Returns the “default value” for a type. Read more
sourceimpl<'_> From<&'_ str> for WideString
impl<'_> From<&'_ str> for WideString
sourcepub fn from(value: &str) -> WideString
pub fn from(value: &str) -> WideString
Performs the conversion.
sourceimpl From<String> for WideString
impl From<String> for WideString
sourcepub fn from(value: String) -> WideString
pub fn from(value: String) -> WideString
Performs the conversion.
sourceimpl Hash for WideString
impl Hash for WideString
sourceimpl PartialEq<WideString> for WideString
impl PartialEq<WideString> for WideString
sourcepub fn eq(&self, other: &WideString) -> bool
pub fn eq(&self, other: &WideString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &WideString) -> bool
pub 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