pub struct WideString { /* private fields */ }Expand description
Wide character string (UTF-8).
Implementations§
Source§impl WideString
impl WideString
pub fn new() -> WideString
pub fn from_str<S>(str: S) -> WideString
👎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§
Source§impl AsMut<WideString> for WideString
impl AsMut<WideString> for WideString
Source§fn as_mut(&mut self) -> &mut WideString
fn as_mut(&mut self) -> &mut WideString
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<WideString> for WideString
impl AsRef<WideString> for WideString
Source§fn as_ref(&self) -> &WideString
fn as_ref(&self) -> &WideString
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for WideString
impl Clone for WideString
Source§fn clone(&self) -> WideString
fn clone(&self) -> WideString
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 WideString
impl Debug for WideString
Source§impl Default for WideString
impl Default for WideString
Source§fn default() -> WideString
fn default() -> WideString
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a [i32]> for WideString
impl<'a> From<&'a [i32]> for WideString
Source§fn from(slice: &'a [i32]) -> WideString
fn from(slice: &'a [i32]) -> WideString
Converts to this type from the input type.
Source§impl From<&str> for WideString
impl From<&str> for WideString
Source§fn from(value: &str) -> WideString
fn from(value: &str) -> WideString
Converts to this type from the input type.
Source§impl From<String> for WideString
impl From<String> for WideString
Source§fn from(value: String) -> WideString
fn from(value: String) -> WideString
Converts to this type from the input type.
Source§impl Hash for WideString
impl Hash for WideString
Source§impl PartialEq for WideString
impl PartialEq for WideString
impl Eq for WideString
impl StructuralPartialEq for WideString
Auto Trait Implementations§
impl Freeze for WideString
impl RefUnwindSafe for WideString
impl Send for WideString
impl Sync for WideString
impl Unpin for WideString
impl UnwindSafe for WideString
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