Struct cxx_qt_lib::QString
source · [−]pub struct QString { /* private fields */ }
Expand description
The QString class provides a Unicode character string.
Note that QString is a UTF-16 whereas Rust strings are a UTF-8
Trait Implementations
sourceimpl Clone for QString
impl Clone for QString
sourcefn clone(&self) -> Self
fn clone(&self) -> Self
Constructs a copy of other.
This operation takes constant time, because QString is implicitly shared. This makes returning a QString from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes linear time.
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ExternType for QString
impl ExternType for QString
Auto Trait Implementations
impl RefUnwindSafe for QString
impl Send for QString
impl Sync for QString
impl Unpin for QString
impl UnwindSafe for QString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more