#[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 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.