[][src]Struct qt_core::QJsonValueRef

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

C++ class: QJsonValueRef.

Methods

impl QJsonValueRef[src]

pub unsafe fn copy_from_q_json_value(
    &mut self,
    val: impl CastInto<Ref<QJsonValue>>
) -> MutRef<QJsonValueRef>
[src]

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

pub unsafe fn copy_from_q_json_value_ref(
    &mut self,
    val: impl CastInto<Ref<QJsonValueRef>>
) -> MutRef<QJsonValueRef>
[src]

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

pub unsafe fn is_array(&self) -> bool[src]

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

pub unsafe fn is_bool(&self) -> bool[src]

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

pub unsafe fn is_double(&self) -> bool[src]

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

pub unsafe fn is_null(&self) -> bool[src]

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

pub unsafe fn is_object(&self) -> bool[src]

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

pub unsafe fn is_string(&self) -> bool[src]

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

pub unsafe fn is_undefined(&self) -> bool[src]

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

pub unsafe fn from_q_json_array_int(
    array: impl CastInto<MutPtr<QJsonArray>>,
    idx: c_int
) -> CppBox<QJsonValueRef>
[src]

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

pub unsafe fn from_q_json_object_int(
    object: impl CastInto<MutPtr<QJsonObject>>,
    idx: c_int
) -> CppBox<QJsonValueRef>
[src]

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

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

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

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

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

pub unsafe fn to_bool_0a(&self) -> bool[src]

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

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

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

pub unsafe fn to_double_0a(&self) -> c_double[src]

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

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

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

pub unsafe fn to_int_0a(&self) -> c_int[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

pub unsafe fn type_(&self) -> Type[src]

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

Trait Implementations

impl PartialEq<Ref<QJsonValue>> for QJsonValueRef[src]

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

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

impl CppDeletable for QJsonValueRef[src]

unsafe fn delete(&mut self)[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]