Public Member Functions | |
| void | assign_from_another (other:&meshlib::std_variant_float_MR_Vector3f) |
| auto | index () const -> usize |
| void | assign_as_float (value:f32) |
| void | assign_as_mr_vector3f (value:meshlib::Vector3f) |
| auto | get_float () const -> Option<&f32 > |
| auto | get_float_mut () -> Option<&mut f32 > |
| auto | get_mr_vector3f () const -> Option<&meshlib::Vector3f > |
| auto | get_mr_vector3f_mut () -> Option<&mut meshlib::Vector3f > |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f > |
| static auto | construct_from_another (other:&meshlib::std_variant_float_MR_Vector3f) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f > |
| static auto | construct_as_float (value:f32) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f > |
| static auto | construct_as_mr_vector3f (value:meshlib::Vector3f) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Stores one of 2 objects: float, MR::Vector3f.
Generated from class std::variant<float, MR::Vector3f>. Heap-allocated instances are held in Owned<std_variant_float_MR_Vector3f>.
| void meshlib::std_variant_float_MR_Vector3f::assign_as_float | ( | value:f32 | ) |
Assigns to the variant, making it store the element 0, of type float.
Calls MR_std_variant_float_MR_Vector3f_AssignAs_float().
| void meshlib::std_variant_float_MR_Vector3f::assign_as_mr_vector3f | ( | value:meshlib::Vector3f | ) |
Assigns to the variant, making it store the element 1, of type MR::Vector3f.
Calls MR_std_variant_float_MR_Vector3f_AssignAs_MR_Vector3f(). The reference to the parameter value might be preserved in this object.
| void meshlib::std_variant_float_MR_Vector3f::assign_from_another | ( | other:&meshlib::std_variant_float_MR_Vector3f | ) |
Assigns the contents from another instance. Both objects remain alive after the call.
Calls MR_std_variant_float_MR_Vector3f_AssignFromAnother(). The reference to the parameter other might be preserved in this object.
|
static |
Constructs the variant storing the element 0, of type float.
Calls MR_std_variant_float_MR_Vector3f_ConstructAs_float().
|
static |
Constructs the variant storing the element 1, of type MR::Vector3f.
Calls MR_std_variant_float_MR_Vector3f_ConstructAs_MR_Vector3f(). The reference to the parameter value might be preserved in the constructed object.
|
static |
Constructs a copy of another instance. The source remains alive.
Calls MR_std_variant_float_MR_Vector3f_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.
| auto meshlib::std_variant_float_MR_Vector3f::get_float | ( | ) | const -> Option<&f32 > |
Returns the element 0, of type float, read-only. If it's not the active element, returns null.
Calls MR_std_variant_float_MR_Vector3f_get_float(). The reference to this object might be preserved as the return value.
| auto meshlib::std_variant_float_MR_Vector3f::get_float_mut | ( | ) | -> Option<&mut f32 > |
Returns the element 0, of type float, mutable. If it's not the active element, returns null.
Calls MR_std_variant_float_MR_Vector3f_get_float_mut(). The reference to this object might be preserved as the return value.
| auto meshlib::std_variant_float_MR_Vector3f::get_mr_vector3f | ( | ) | const -> Option<&meshlib::Vector3f > |
Returns the element 1, of type MR::Vector3f, read-only. If it's not the active element, returns null.
Calls MR_std_variant_float_MR_Vector3f_get_MR_Vector3f(). The reference to this object might be preserved as the return value.
| auto meshlib::std_variant_float_MR_Vector3f::get_mr_vector3f_mut | ( | ) | -> Option<&mut meshlib::Vector3f > |
Returns the element 1, of type MR::Vector3f, mutable. If it's not the active element, returns null.
Calls MR_std_variant_float_MR_Vector3f_get_MR_Vector3f_mut(). The reference to this object might be preserved as the return value.
| auto meshlib::std_variant_float_MR_Vector3f::index | ( | ) | const -> usize |
Returns the index of the stored element type. In rare cases may return -1 if this variant is "valueless by exception".
Calls MR_std_variant_float_MR_Vector3f_index().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_std_variant_float_MR_Vector3f_DefaultConstruct().