Struct qmetaobject::QString
source · #[repr(C)]pub struct QString { /* private fields */ }
Expand description
Wrapper around QString
class.
Implementations§
source§impl 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
sourcepub fn append(&mut self, other: QString) -> QString
pub fn append(&mut self, other: QString) -> QString
Wrapper around QString QString::append(const QString &str)
method.
Trait Implementations§
source§impl AddAssign for QString
impl AddAssign for QString
source§fn add_assign(&mut self, rhs: QString)
fn add_assign(&mut self, rhs: QString)
+=
operation. Read moresource§impl From<QString> for QByteArray
impl From<QString> for QByteArray
source§fn from(s: QString) -> QByteArray
fn from(s: QString) -> QByteArray
Converts a QString
to a QByteArray
source§impl From<QString> for QJsonValue
impl From<QString> for QJsonValue
source§fn from(v: QString) -> QJsonValue
fn from(v: QString) -> QJsonValue
source§impl From<QUrl> for QString
impl From<QUrl> for QString
source§fn from(qurl: QUrl) -> QString
fn from(qurl: QUrl) -> QString
Wrapper around QUrl::toString(QUrl::FormattingOptions=...)
method.
Wrapper-specific
Formatting options are left at defaults.
source§impl Index<QString> for QVariantMap
impl Index<QString> for QVariantMap
source§impl IndexMut<QString> for QVariantMap
impl IndexMut<QString> for QVariantMap
source§fn index_mut(
&mut self,
key: QString
) -> &mut <QVariantMap as Index<QString>>::Output
fn index_mut( &mut self, key: QString ) -> &mut <QVariantMap as Index<QString>>::Output
Wrapper around operator[](int)
operator method.
source§impl Into<QString> for QJsonValue
impl Into<QString> for QJsonValue
source§impl Ord for QString
impl Ord for QString
source§impl PartialEq for QString
impl PartialEq for QString
source§impl PartialOrd for QString
impl PartialOrd for QString
source§fn le(&self, other: &QString) -> bool
fn le(&self, other: &QString) -> bool
self
and other
) and is used by the <=
operator. Read more