MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::UnitInfo:

Public Member Functions

auto assign_from_another (_other:&meshlib::UnitInfo) -> &mut meshlib::UnitInfo
auto conversion_factor () const -> &f32
auto conversion_factor_mut () -> &mut f32
void set_conversion_factor (value:f32)
auto pretty_name () const -> &meshlib::std_string_view
auto pretty_name_mut () -> &mut meshlib::std_string_view
void set_pretty_name (value:&str)
auto unit_suffix () const -> &meshlib::std_string_view
auto unit_suffix_mut () -> &mut meshlib::std_string_view
void set_unit_suffix (value:&str)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::UnitInfo >
static auto construct_from (conversionFactor:f32, prettyName:&str, unitSuffix:&str) -> meshlib::Owned< meshlib::UnitInfo >
static auto construct_from_another (_other:&meshlib::UnitInfo) -> meshlib::Owned< meshlib::UnitInfo >
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

Information about a single measurement unit. Generated from class MR::UnitInfo.

Generated from class MR::UnitInfo. Heap-allocated instances are held in Owned<UnitInfo>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::UnitInfo::assign_from_another ( _other:&meshlib::UnitInfo ) -> &mut meshlib::UnitInfo

Generated from method MR::UnitInfo::operator=.

Calls MR_UnitInfo_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from()

auto meshlib::UnitInfo::construct_from ( conversionFactor:f32 ,
prettyName:& str,
unitSuffix:& str ) -> meshlib::Owned< meshlib::UnitInfo >
static

Constructs MR::UnitInfo elementwise.

Calls MR_UnitInfo_ConstructFrom(). The reference to the parameter prettyName might be preserved in the constructed object. The reference to the parameter unitSuffix might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::UnitInfo::construct_from_another ( _other:&meshlib::UnitInfo ) -> meshlib::Owned< meshlib::UnitInfo >
static

Generated from constructor MR::UnitInfo::UnitInfo.

Calls MR_UnitInfo_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ conversion_factor()

auto meshlib::UnitInfo::conversion_factor ( ) const -> &f32

This is used to convert between units. To convert from A to B, multiply by A's factor and divide by B's. Returns a pointer to a member variable of class MR::UnitInfo named conversionFactor.

Calls MR_UnitInfo_Get_conversionFactor(). The reference to this object might be preserved as the return value.

◆ conversion_factor_mut()

auto meshlib::UnitInfo::conversion_factor_mut ( ) -> &mut f32

This is used to convert between units. To convert from A to B, multiply by A's factor and divide by B's. Returns a mutable pointer to a member variable of class MR::UnitInfo named conversionFactor.

Calls MR_UnitInfo_GetMutable_conversionFactor(). The reference to this object might be preserved as the return value.

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_UnitInfo_DefaultConstruct().

◆ pretty_name()

auto meshlib::UnitInfo::pretty_name ( ) const -> &meshlib::std_string_view

Returns a pointer to a member variable of class MR::UnitInfo named prettyName.

Calls MR_UnitInfo_Get_prettyName(). The reference to this object might be preserved as the return value.

◆ pretty_name_mut()

auto meshlib::UnitInfo::pretty_name_mut ( ) -> &mut meshlib::std_string_view

Returns a mutable pointer to a member variable of class MR::UnitInfo named prettyName.

Calls MR_UnitInfo_GetMutable_prettyName(). The reference to this object might be preserved as the return value.

◆ set_conversion_factor()

void meshlib::UnitInfo::set_conversion_factor ( value:f32 )

This is used to convert between units. To convert from A to B, multiply by A's factor and divide by B's. Modifies a member variable of class MR::UnitInfo named conversionFactor.

Calls MR_UnitInfo_Set_conversionFactor().

◆ set_pretty_name()

void meshlib::UnitInfo::set_pretty_name ( value:& str)

Modifies a member variable of class MR::UnitInfo named prettyName.

Calls MR_UnitInfo_Set_prettyName(). The reference to the parameter value might be preserved in this object in element prettyName.

◆ set_unit_suffix()

void meshlib::UnitInfo::set_unit_suffix ( value:& str)

The short unit name that's placed after values. This may or may not start with a space. Modifies a member variable of class MR::UnitInfo named unitSuffix.

Calls MR_UnitInfo_Set_unitSuffix(). The reference to the parameter value might be preserved in this object in element unitSuffix.

◆ unit_suffix()

auto meshlib::UnitInfo::unit_suffix ( ) const -> &meshlib::std_string_view

The short unit name that's placed after values. This may or may not start with a space. Returns a pointer to a member variable of class MR::UnitInfo named unitSuffix.

Calls MR_UnitInfo_Get_unitSuffix(). The reference to this object might be preserved as the return value.

◆ unit_suffix_mut()

auto meshlib::UnitInfo::unit_suffix_mut ( ) -> &mut meshlib::std_string_view

The short unit name that's placed after values. This may or may not start with a space. Returns a mutable pointer to a member variable of class MR::UnitInfo named unitSuffix.

Calls MR_UnitInfo_GetMutable_unitSuffix(). The reference to this object might be preserved as the return value.


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