Struct qmetaobject::QJsonArray
source · #[repr(C)]pub struct QJsonArray { /* private fields */ }
Expand description
Wrapper around QJsonArray
class.
Implementations§
source§impl QJsonArray
impl QJsonArray
pub fn to_json(&self) -> QByteArray
pub fn to_json_pretty(&self) -> QByteArray
pub fn push(&mut self, value: QJsonValue)
pub fn insert(&mut self, index: usize, element: QJsonValue)
pub fn at(&self, index: usize) -> QJsonValue
pub fn take_at(&mut self, index: usize) -> QJsonValue
pub fn remove_at(&mut self, index: usize)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for QJsonArray
impl Clone for QJsonArray
source§fn clone(&self) -> QJsonArray
fn clone(&self) -> QJsonArray
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 Default for QJsonArray
impl Default for QJsonArray
source§fn default() -> QJsonArray
fn default() -> QJsonArray
Returns the “default value” for a type. Read more
source§impl Drop for QJsonArray
impl Drop for QJsonArray
source§impl From<QJsonArray> for QJsonValue
impl From<QJsonArray> for QJsonValue
source§fn from(v: QJsonArray) -> QJsonValue
fn from(v: QJsonArray) -> QJsonValue
Converts to this type from the input type.
source§impl From<Vec<QJsonValue>> for QJsonArray
impl From<Vec<QJsonValue>> for QJsonArray
source§fn from(v: Vec<QJsonValue>) -> QJsonArray
fn from(v: Vec<QJsonValue>) -> QJsonArray
Converts to this type from the input type.
source§impl Into<QJsonArray> for QJsonValue
impl Into<QJsonArray> for QJsonValue
source§fn into(self) -> QJsonArray
fn into(self) -> QJsonArray
Converts this type into the (usually inferred) input type.
source§impl PartialEq for QJsonArray
impl PartialEq for QJsonArray
source§fn eq(&self, other: &QJsonArray) -> bool
fn eq(&self, other: &QJsonArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl QMetaType for QJsonArray
impl QMetaType for QJsonArray
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 QJsonArray
impl StructuralEq for QJsonArray
Auto Trait Implementations§
impl RefUnwindSafe for QJsonArray
impl Send for QJsonArray
impl Sync for QJsonArray
impl Unpin for QJsonArray
impl UnwindSafe for QJsonArray
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