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

Public Member Functions

void assign_from_another (other:&meshlib::std_pair_std_string_float)
auto first () const -> &meshlib::std_string
auto first_mut () -> &mut meshlib::std_string
auto second () const -> &f32
auto second_mut () -> &mut f32

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::std_pair_std_string_float >
static auto construct_from_another (other:&meshlib::std_pair_std_string_float) -> meshlib::Owned< meshlib::std_pair_std_string_float >
static auto construct (first:&str, second:f32) -> meshlib::Owned< meshlib::std_pair_std_string_float >
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 two objects: std::string and std::string.

Generated from class std::pair<std::string, float>. Heap-allocated instances are held in Owned<std_pair_std_string_float>.

Member Function Documentation

◆ assign_from_another()

void meshlib::std_pair_std_string_float::assign_from_another ( other:&meshlib::std_pair_std_string_float )

Assigns the contents from another instance. Both objects remain alive after the call.

Calls MR_std_pair_std_string_float_AssignFromAnother(). The reference to the parameter other might be preserved in this object.

◆ construct()

auto meshlib::std_pair_std_string_float::construct ( first:& str,
second:f32  ) -> meshlib::Owned< meshlib::std_pair_std_string_float >
static

Constructs the pair elementwise.

Calls MR_std_pair_std_string_float_Construct(). The reference to the parameter first might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::std_pair_std_string_float::construct_from_another ( other:&meshlib::std_pair_std_string_float ) -> meshlib::Owned< meshlib::std_pair_std_string_float >
static

Constructs a copy of another instance. The source remains alive.

Calls MR_std_pair_std_string_float_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.

◆ first()

auto meshlib::std_pair_std_string_float::first ( ) const -> &meshlib::std_string

The first of the two elements, read-only.

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

◆ first_mut()

auto meshlib::std_pair_std_string_float::first_mut ( ) -> &mut meshlib::std_string

The first of the two elements, mutable.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_std_pair_std_string_float_DefaultConstruct().

◆ second()

auto meshlib::std_pair_std_string_float::second ( ) const -> &f32

The second of the two elements, read-only.

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

◆ second_mut()

auto meshlib::std_pair_std_string_float::second_mut ( ) -> &mut f32

The second of the two elements, mutable.

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


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