#[repr(C)]pub struct QString { /* private fields */ }
Expand description
Wrapper around QString
class.
Implementations
sourceimpl QString
impl QString
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Wrapper around bool QString::isEmpty() const
method
use qttypes::QString;
assert!(QString::default().is_empty());
assert!(QString::from("").is_empty());
assert!(!QString::from("abc").is_empty());
sourcepub fn is_null(&self) -> bool
pub fn is_null(&self) -> bool
Wrapper around bool QString::isNull() const
method
use qttypes::QString;
assert!(QString::default().is_null());
assert!(!QString::from("").is_null());
assert!(!QString::from("abc").is_null());
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Wrapper around void QString::shrink_to_fit()
method.
sourcepub fn to_upper(&self) -> QString
pub fn to_upper(&self) -> QString
Wrapper around QString QString::toUpper() const
method.
sourcepub fn to_lower(&self) -> QString
pub fn to_lower(&self) -> QString
Wrapper around QString QString::toLower() const
method.
sourcepub fn trimmed(&self) -> QString
pub fn trimmed(&self) -> QString
Wrapper around QString QString::trimmed() const
method.
sourcepub fn to_case_folded(&self) -> QString
pub fn to_case_folded(&self) -> QString
Wrapper around QString QString::toCascadeFold() const
method.
sourcepub fn simplified(&self) -> QString
pub fn simplified(&self) -> QString
Wrapper around QString QString::simplified() const
method.
sourcepub fn to_int(&self, base: i32) -> Result<i32, ()>
pub fn to_int(&self, base: i32) -> Result<i32, ()>
Wrapper around int QString::toInt(bool *ok = nullptr, int base = 10) const
method.
sourcepub fn to_long_long(&self, base: i32) -> Result<i64, ()>
pub fn to_long_long(&self, base: i32) -> Result<i64, ()>
Wrapper around qlonglong QString::toLongLong(bool *ok = nullptr, int base = 10) const
method.
sourcepub fn normalized(
&self,
mode: NormalizationForm,
version: UnicodeVersion
) -> QString
pub fn normalized(
&self,
mode: NormalizationForm,
version: UnicodeVersion
) -> QString
Trait Implementations
sourceimpl From<QString> for QByteArray
impl From<QString> for QByteArray
sourcefn from(s: QString) -> QByteArray
fn from(s: QString) -> QByteArray
Converts a QString
to a QByteArray
sourceimpl From<QString> for QVariant
impl From<QString> for QVariant
sourcefn from(a: QString) -> QVariant
fn from(a: QString) -> QVariant
Wrapper around QVariant(const QString &)
constructor.
sourceimpl From<QString> for QJsonValue
impl From<QString> for QJsonValue
sourcefn from(v: QString) -> QJsonValue
fn from(v: QString) -> QJsonValue
Performs the conversion.
sourceimpl From<QUrl> for QString
impl From<QUrl> for QString
sourcefn from(qurl: QUrl) -> QString
fn from(qurl: QUrl) -> QString
Wrapper around QUrl::toString(QUrl::FormattingOptions=...)
method.
Wrapper-specific
Formatting options are left at defaults.
sourceimpl Index<QString> for QVariantMap
impl Index<QString> for QVariantMap
sourceimpl IndexMut<QString> for QVariantMap
impl IndexMut<QString> for QVariantMap
sourcefn index_mut(&mut self, key: QString) -> &mut Self::Output
fn index_mut(&mut self, key: QString) -> &mut Self::Output
Wrapper around operator[](int)
operator method.
sourceimpl Ord for QString
impl Ord for QString
sourceimpl PartialOrd<QString> for QString
impl PartialOrd<QString> for QString
sourcefn lt(&self, other: &QString) -> bool
fn lt(&self, other: &QString) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
sourcefn gt(&self, other: &QString) -> bool
fn gt(&self, other: &QString) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
sourcefn le(&self, other: &QString) -> bool
fn le(&self, other: &QString) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for QString
impl StructuralEq 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 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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more