[−][src]Struct qt_core::QJsonValueRef
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]
&mut self,
val: impl CastInto<Ref<QJsonValue>>
) -> MutRef<QJsonValueRef>
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]
&mut self,
val: impl CastInto<Ref<QJsonValueRef>>
) -> MutRef<QJsonValueRef>
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]
array: impl CastInto<MutPtr<QJsonArray>>,
idx: c_int
) -> CppBox<QJsonValueRef>
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]
object: impl CastInto<MutPtr<QJsonObject>>,
idx: c_int
) -> CppBox<QJsonValueRef>
Calls C++ function: [constructor] void QJsonValueRef::QJsonValueRef(QJsonObject* object, int idx)
.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QJsonValueRef>>
) -> CppBox<QJsonValueRef>
[src]
other: impl CastInto<Ref<QJsonValueRef>>
) -> CppBox<QJsonValueRef>
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]
&self,
default_value: impl CastInto<Ref<QString>>
) -> CppBox<QString>
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 CppDeletable for QJsonValueRef
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: [destructor] void QJsonValueRef::~QJsonValueRef()
.
impl PartialEq<Ref<QJsonValue>> for QJsonValueRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for QJsonValueRef
impl Send for QJsonValueRef
impl Sync for QJsonValueRef
impl Unpin for QJsonValueRef
impl UnwindSafe for QJsonValueRef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,