[][src]Struct qt_qml::q_qml_context::PropertyPair

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

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

C++ class: QQmlContext::PropertyPair.

C++ documentation:

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

Methods

impl PropertyPair[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<PropertyPair>>
) -> Ref<PropertyPair>
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

Calls C++ function: QQmlContext::PropertyPair& QQmlContext::PropertyPair::operator=(const QQmlContext::PropertyPair& other).

C++ documentation:

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

pub unsafe fn name(&self) -> Ref<QString>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Returns a reference to the name field.

pub unsafe fn name_mut(&self) -> Ref<QString>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Returns a mutable reference to the name field.

pub unsafe fn new() -> CppBox<PropertyPair>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

Calls C++ function: [constructor] void QQmlContext::PropertyPair::PropertyPair().

C++ documentation:

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

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

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

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

C++ documentation:

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

pub unsafe fn set_name(&self, value: impl CastInto<Ref<QString>>)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Sets the value of the name field.

pub unsafe fn set_value(&self, value: impl CastInto<Ref<QVariant>>)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Sets the value of the value field.

pub unsafe fn value(&self) -> Ref<QVariant>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Returns a reference to the value field.

pub unsafe fn value_mut(&self) -> Ref<QVariant>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Returns a mutable reference to the value field.

Trait Implementations

impl CppDeletable for PropertyPair[src]

unsafe fn delete(&self)[src]

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

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

C++ documentation:

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> StaticUpcast<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.