Struct qttypes::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§impl Default for QJsonArray
impl Default for QJsonArray
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 ==
.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