Struct qt_core::QJsonValueRef

source ·
#[repr(C)]
pub struct QJsonValueRef { /* private fields */ }
Expand description

C++ class: QJsonValueRef.

Implementations§

source§

impl QJsonValueRef

source

pub unsafe fn copy_from_q_json_value( &self, val: impl CastInto<Ref<QJsonValue>> ) -> Ref<QJsonValueRef>

Calls C++ function: QJsonValueRef& QJsonValueRef::operator=(const QJsonValue& val).

source

pub unsafe fn copy_from_q_json_value_ref( &self, val: impl CastInto<Ref<QJsonValueRef>> ) -> Ref<QJsonValueRef>

Calls C++ function: QJsonValueRef& QJsonValueRef::operator=(const QJsonValueRef& val).

source

pub unsafe fn is_array(&self) -> bool

Calls C++ function: bool QJsonValueRef::isArray() const.

source

pub unsafe fn is_bool(&self) -> bool

Calls C++ function: bool QJsonValueRef::isBool() const.

source

pub unsafe fn is_double(&self) -> bool

Calls C++ function: bool QJsonValueRef::isDouble() const.

source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QJsonValueRef::isNull() const.

source

pub unsafe fn is_object(&self) -> bool

Calls C++ function: bool QJsonValueRef::isObject() const.

source

pub unsafe fn is_string(&self) -> bool

Calls C++ function: bool QJsonValueRef::isString() const.

source

pub unsafe fn is_undefined(&self) -> bool

Calls C++ function: bool QJsonValueRef::isUndefined() const.

source

pub unsafe fn from_q_json_array_int( array: impl CastInto<Ptr<QJsonArray>>, idx: c_int ) -> CppBox<QJsonValueRef>

Calls C++ function: [constructor] void QJsonValueRef::QJsonValueRef(QJsonArray* array, int idx).

source

pub unsafe fn from_q_json_object_int( object: impl CastInto<Ptr<QJsonObject>>, idx: c_int ) -> CppBox<QJsonValueRef>

Calls C++ function: [constructor] void QJsonValueRef::QJsonValueRef(QJsonObject* object, int idx).

source

pub unsafe fn new_copy( other: impl CastInto<Ref<QJsonValueRef>> ) -> CppBox<QJsonValueRef>

Calls C++ function: [constructor] void QJsonValueRef::QJsonValueRef(const QJsonValueRef& other).

source

pub unsafe fn to_array(&self) -> CppBox<QJsonArray>

Calls C++ function: QJsonArray QJsonValueRef::toArray() const.

source

pub unsafe fn to_bool_0a(&self) -> bool

Calls C++ function: bool QJsonValueRef::toBool() const.

source

pub unsafe fn to_bool_1a(&self, default_value: bool) -> bool

Calls C++ function: bool QJsonValueRef::toBool(bool defaultValue) const.

source

pub unsafe fn to_double_0a(&self) -> c_double

Calls C++ function: double QJsonValueRef::toDouble() const.

source

pub unsafe fn to_double_1a(&self, default_value: c_double) -> c_double

Calls C++ function: double QJsonValueRef::toDouble(double defaultValue) const.

source

pub unsafe fn to_int_0a(&self) -> c_int

Calls C++ function: int QJsonValueRef::toInt() const.

source

pub unsafe fn to_int_1a(&self, default_value: c_int) -> c_int

Calls C++ function: int QJsonValueRef::toInt(int defaultValue) const.

source

pub unsafe fn to_object(&self) -> CppBox<QJsonObject>

Calls C++ function: QJsonObject QJsonValueRef::toObject() const.

source

pub unsafe fn to_q_json_value(&self) -> CppBox<QJsonValue>

Calls C++ function: QJsonValue QJsonValueRef::operator QJsonValue() const.

source

pub unsafe fn to_string_0a(&self) -> CppBox<QString>

Calls C++ function: QString QJsonValueRef::toString() const.

source

pub unsafe fn to_string_1a( &self, default_value: impl CastInto<Ref<QString>> ) -> CppBox<QString>

Calls C++ function: QString QJsonValueRef::toString(const QString& defaultValue) const.

source

pub unsafe fn to_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QJsonValueRef::toVariant() const.

source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QJsonValue::Type QJsonValueRef::type() const.

Trait Implementations§

source§

impl CppDeletable for QJsonValueRef

source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QJsonValueRef::~QJsonValueRef().

source§

impl PartialEq<Ref<QJsonValue>> for QJsonValueRef

source§

fn eq(&self, other: &Ref<QJsonValue>) -> bool

Calls C++ function: bool QJsonValueRef::operator==(const QJsonValue& other) const.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.