MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::std_variant_float_MR_Vector3f Struct Reference
Inheritance diagram for meshlib::std_variant_float_MR_Vector3f:

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

Detailed Description

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>.

Member Function Documentation

◆ assign_as_float()

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().

◆ assign_as_mr_vector3f()

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.

◆ assign_from_another()

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.

◆ construct_as_float()

auto meshlib::std_variant_float_MR_Vector3f::construct_as_float ( value:f32 ) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f >
static

Constructs the variant storing the element 0, of type float.

Calls MR_std_variant_float_MR_Vector3f_ConstructAs_float().

◆ construct_as_mr_vector3f()

auto meshlib::std_variant_float_MR_Vector3f::construct_as_mr_vector3f ( value:meshlib::Vector3f ) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f >
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.

◆ construct_from_another()

auto meshlib::std_variant_float_MR_Vector3f::construct_from_another ( other:&meshlib::std_variant_float_MR_Vector3f ) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f >
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.

◆ get_float()

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.

◆ get_float_mut()

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.

◆ get_mr_vector3f()

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.

◆ get_mr_vector3f_mut()

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.

◆ index()

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().

◆ new()

auto meshlib::std_variant_float_MR_Vector3f::new ( ) -> meshlib::Owned< meshlib::std_variant_float_MR_Vector3f >
static

Constructs an empty (default-constructed) instance.

Calls MR_std_variant_float_MR_Vector3f_DefaultConstruct().


The documentation for this struct was generated from the following file: