#[repr(C)]pub struct QAnyStringView<'a> { /* private fields */ }
Expand description
The QAnyStringView class provides a unified view of a Latin-1, UTF-8, or UTF-16 string.
Implementations§
Source§impl QAnyStringView<'_>
impl QAnyStringView<'_>
Source§impl QAnyStringView<'_>
impl QAnyStringView<'_>
Source§impl QAnyStringView<'_>
impl QAnyStringView<'_>
Sourcepub fn to_qstring(&self) -> QString
pub fn to_qstring(&self) -> QString
Returns a deep copy of this string view’s data as a QString.
Trait Implementations§
Source§impl<'a> Clone for QAnyStringView<'a>
impl<'a> Clone for QAnyStringView<'a>
Source§fn clone(&self) -> QAnyStringView<'a>
fn clone(&self) -> QAnyStringView<'a>
Constructs a copy of other.
This operation takes constant time, because QAnyStringView is a view-only string.
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 Default for QAnyStringView<'_>
impl Default for QAnyStringView<'_>
Source§impl ExternType for QAnyStringView<'_>
impl ExternType for QAnyStringView<'_>
Source§impl<'a> From<&'a QByteArray> for QAnyStringView<'a>
impl<'a> From<&'a QByteArray> for QAnyStringView<'a>
Source§fn from(bytes: &'a QByteArray) -> Self
fn from(bytes: &'a QByteArray) -> Self
Constructs a QAnyStringView from a QByteArray
Source§impl<'a> From<&'a QString> for QAnyStringView<'a>
impl<'a> From<&'a QString> for QAnyStringView<'a>
Source§impl<'a> From<&'a str> for QAnyStringView<'a>
impl<'a> From<&'a str> for QAnyStringView<'a>
Source§impl PartialEq for QAnyStringView<'_>
impl PartialEq for QAnyStringView<'_>
impl Eq for QAnyStringView<'_>
Auto Trait Implementations§
impl<'a> Freeze for QAnyStringView<'a>
impl<'a> RefUnwindSafe for QAnyStringView<'a>
impl<'a> Send for QAnyStringView<'a>
impl<'a> Sync for QAnyStringView<'a>
impl<'a> Unpin for QAnyStringView<'a>
impl<'a> UnwindSafe for QAnyStringView<'a>
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