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 |
Information about a single measurement unit. Generated from class MR::UnitInfo.
Generated from class MR::UnitInfo. Heap-allocated instances are held in Owned<UnitInfo>.
| 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.
|
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.
|
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.
| 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.
| 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.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_UnitInfo_DefaultConstruct().
| 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.
| 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.
| 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().
| 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.
| 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.
| 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.
| 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.