[]Struct qmetaobject::qttypes::QString

#[repr(C)]
pub struct QString { /* fields omitted */ }

Wrapper around Qt's QString class

Methods

impl QString[src]

pub fn to_slice(&self) -> &[u16][src]

Return a slice containing the UTF-16 data

Trait Implementations

impl QMetaType for QString[src]

fn id() -> i32[src]

fn to_qvariant(&self) -> QVariant[src]

Returns a QVariant containing a copy of this object

fn from_qvariant(variant: QVariant) -> Option<Self>[src]

Attempt to convert from a QVariant to this type.

const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>[src]

If this is set to a function, it enable the conversion to and from QString

const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self>[src]

impl Eq for QString

impl Into<String> for QString[src]

impl Ord for QString

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialEq<QString> for QString

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Drop for QString

impl Clone for QString

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<QString> for QString

impl From<QString> for QByteArray[src]

fn from(s: QString) -> QByteArray[src]

Converts a QString to a QByteArray

impl<'a> From<&'a str> for QString[src]

fn from(s: &'a str) -> QString[src]

Copy the data from a &str

impl From<String> for QString[src]

impl From<QString> for QVariant[src]

impl From<QString> for QJSValue[src]

impl Default for QString

impl Debug for QString[src]

impl Display for QString[src]

Auto Trait Implementations

impl Send for QString

impl Sync for QString

Blanket Implementations

impl<T> QMetaType for T where
    T: QGadget + Clone + Default + 'static, 
[src]

fn id() -> i32[src]

fn to_qvariant(&self) -> QVariant[src]

Returns a QVariant containing a copy of this object

fn from_qvariant(variant: QVariant) -> Option<Self>[src]

Attempt to convert from a QVariant to this type.

const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>[src]

If this is set to a function, it enable the conversion to and from QString

const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self>[src]

impl<T> PropertyType for T where
    T: QMetaType + QMetaType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]