Trait VariantDataMethods

Source
pub trait VariantDataMethods: ObjectRefDataMethods {
    // Provided methods
    fn clone(&self) -> Option<VariantDataIsOwned<false>> { ... }
    fn dec_ref(&self) { ... }
    fn eq<V: VariantDataMethods>(&self, data: &V) -> bool { ... }
    fn get_type(&self) -> String { ... }
    fn get_value_class_info(&self) -> Option<ClassInfoIsOwned<false>> { ... }
    fn inc_ref(&self) { ... }
    fn read(&self, string: *mut c_void) -> bool { ... }
    fn write(&self, string: *mut c_void) -> bool { ... }
}
Expand description

This trait represents C++ wxVariantData class’s methods and inheritance.

See VariantDataIsOwned documentation for the class usage.

Provided Methods§

Source

fn clone(&self) -> Option<VariantDataIsOwned<false>>

This function can be overridden to clone the data.

See C++ wxVariantData::Clone()’s documentation.

Source

fn dec_ref(&self)

Decreases reference count.

See C++ wxVariantData::DecRef()’s documentation.

Source

fn eq<V: VariantDataMethods>(&self, data: &V) -> bool

Returns true if this object is equal to data.

See C++ wxVariantData::Eq()’s documentation.

Source

fn get_type(&self) -> String

Returns the string type of the data.

See C++ wxVariantData::GetType()’s documentation.

Source

fn get_value_class_info(&self) -> Option<ClassInfoIsOwned<false>>

If the data is a wxObject returns a pointer to the objects wxClassInfo structure, if the data isn’t a wxObject the method returns NULL.

See C++ wxVariantData::GetValueClassInfo()’s documentation.

Source

fn inc_ref(&self)

Increases reference count.

See C++ wxVariantData::IncRef()’s documentation.

Source

fn read(&self, string: *mut c_void) -> bool

Reads the data from string.

See C++ wxVariantData::Read()’s documentation.

Source

fn write(&self, string: *mut c_void) -> bool

Writes the data to string.

See C++ wxVariantData::Write()’s documentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<const OWNED: bool> VariantDataMethods for VariantDataIsOwned<OWNED>