Struct qmetaobject::QString[][src]

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

Wrapper around QString class.

Implementations

impl QString[src]

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

Return a slice containing the UTF-16 data.

Trait Implementations

impl Clone for QString[src]

impl Debug for QString[src]

impl Default for QString[src]

impl Display for QString[src]

impl Drop for QString[src]

impl Eq for QString[src]

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

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

Copy the data from a &str.

impl From<QString> for QVariant[src]

pub fn from(a: QString) -> QVariant[src]

Wrapper around QVariant(const QString &) constructor.

impl From<QString> for QUrl[src]

impl From<QString> for QByteArray[src]

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

Converts a QString to a QByteArray

impl From<QString> for QJSValue[src]

impl From<QUrl> for QString[src]

pub fn from(qurl: QUrl) -> QString[src]

Wrapper around QUrl::toString(QUrl::FormattingOptions=...) method.

Wrapper-specific

Formatting options are left at defaults.

impl From<String> for QString[src]

impl Into<String> for QString[src]

impl Ord for QString[src]

impl PartialEq<QString> for QString[src]

impl PartialOrd<QString> for QString[src]

impl QMetaType for QString[src]

impl StructuralEq for QString[src]

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

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.