[]Struct qmetaobject::qttypes::QByteArray

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

Wrapper around Qt's QByteArray

Methods

impl QByteArray[src]

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

pub fn to_str(&self) -> Result<&str, Utf8Error>[src]

Trait Implementations

impl QMetaType for QByteArray[src]

impl Drop for QByteArray

impl<'a> From<&'a [u8]> for QByteArray[src]

fn from(s: &'a [u8]) -> QByteArray[src]

Constructs a QByteArray from a slice. (Copy the slice.)

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

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

Constructs a QByteArray from a &str. (Copy the string.)

impl From<String> for QByteArray[src]

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

Constructs a QByteArray from a String. (Copy the string.)

impl From<QString> for QByteArray[src]

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

Converts a QString to a QByteArray

impl From<QByteArray> for QVariant[src]

impl Clone for QByteArray

impl Default for QByteArray

impl Eq for QByteArray

impl Ord for QByteArray

impl PartialEq<QByteArray> for QByteArray

impl PartialOrd<QByteArray> for QByteArray

impl Display for QByteArray[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Prints the contents of the QByteArray if it contains UTF-8, nothing otherwise

impl Debug for QByteArray[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Prints the contents of the QByteArray if it contains UTF-8, nothing otherwise

impl StructuralEq for QByteArray

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[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.

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

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

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