Struct qmetaobject::QByteArray
source · #[repr(C)]pub struct QByteArray { /* private fields */ }
Expand description
Wrapper around QByteArray
class.
Implementations§
Trait Implementations§
source§impl Clone for QByteArray
impl Clone for QByteArray
source§fn clone(&self) -> QByteArray
fn clone(&self) -> QByteArray
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QByteArray
impl Debug for QByteArray
source§impl Default for QByteArray
impl Default for QByteArray
source§fn default() -> QByteArray
fn default() -> QByteArray
Returns the “default value” for a type. Read more
source§impl Display for QByteArray
impl Display for QByteArray
source§impl Drop for QByteArray
impl Drop for QByteArray
source§impl<'a> From<&'a [u8]> for QByteArray
impl<'a> From<&'a [u8]> for QByteArray
source§fn from(s: &'a [u8]) -> QByteArray
fn from(s: &'a [u8]) -> QByteArray
Constructs a QByteArray
from a slice. (Copy the slice.)
source§impl<'a> From<&'a str> for QByteArray
impl<'a> From<&'a str> for QByteArray
source§fn from(s: &'a str) -> QByteArray
fn from(s: &'a str) -> QByteArray
Constructs a QByteArray
from a &str
. (Copy the string.)
source§impl From<QByteArray> for QVariant
impl From<QByteArray> for QVariant
source§fn from(a: QByteArray) -> QVariant
fn from(a: QByteArray) -> QVariant
Wrapper around QVariant(const QByteArray &)
constructor.
source§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<String> for QByteArray
impl From<String> for QByteArray
source§fn from(s: String) -> QByteArray
fn from(s: String) -> QByteArray
Constructs a QByteArray
from a String
. (Copy the string.)
source§impl Ord for QByteArray
impl Ord for QByteArray
source§fn cmp(&self, other: &QByteArray) -> Ordering
fn cmp(&self, other: &QByteArray) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QByteArray
impl PartialEq for QByteArray
source§fn eq(&self, other: &QByteArray) -> bool
fn eq(&self, other: &QByteArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QByteArray
impl PartialOrd for QByteArray
source§fn lt(&self, other: &QByteArray) -> bool
fn lt(&self, other: &QByteArray) -> bool
source§fn gt(&self, other: &QByteArray) -> bool
fn gt(&self, other: &QByteArray) -> bool
source§fn le(&self, other: &QByteArray) -> bool
fn le(&self, other: &QByteArray) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§fn ge(&self, other: &QByteArray) -> bool
fn ge(&self, other: &QByteArray) -> bool
This method tests greater than or equal to (for
self
and other
) and is used by the >=
operator. Read moresource§fn partial_cmp(&self, other: &QByteArray) -> Option<Ordering>
fn partial_cmp(&self, other: &QByteArray) -> Option<Ordering>
source§impl QMetaType for QByteArray
impl QMetaType for QByteArray
fn id() -> i32
source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
source§const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self> = None
impl Eq for QByteArray
impl StructuralEq for QByteArray
Auto Trait Implementations§
impl RefUnwindSafe for QByteArray
impl Send for QByteArray
impl Sync for QByteArray
impl Unpin for QByteArray
impl UnwindSafe for QByteArray
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more