Struct qmetaobject::QByteArray[][src]

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

Wrapper around QByteArray class.

Implementations

impl QByteArray[src]

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

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

Trait Implementations

impl Clone for QByteArray[src]

impl Debug for QByteArray[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

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

impl Default for QByteArray[src]

impl Display for QByteArray[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

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

impl Drop for QByteArray[src]

impl Eq for QByteArray[src]

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

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

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

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

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

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

impl From<QByteArray> for QVariant[src]

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

Wrapper around QVariant(const QByteArray &) constructor.

impl From<QString> for QByteArray[src]

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

Converts a QString to a QByteArray

impl From<String> for QByteArray[src]

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

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

impl Ord for QByteArray[src]

impl PartialEq<QByteArray> for QByteArray[src]

impl PartialOrd<QByteArray> for QByteArray[src]

impl QMetaType for QByteArray[src]

impl StructuralEq for QByteArray[src]

Auto Trait Implementations

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.