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

Public Member Functions

void assign_from_another (other:&meshlib::std_pair_int_int)
auto first () const -> &core::ffi::c_int
auto first_mut () -> &mut core::ffi::c_int
auto second () const -> &core::ffi::c_int
auto second_mut () -> &mut core::ffi::c_int

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::std_pair_int_int >
static auto construct_from_another (other:&meshlib::std_pair_int_int) -> meshlib::Owned< meshlib::std_pair_int_int >
static auto construct (first:core::ffi::c_int, second:core::ffi::c_int) -> meshlib::Owned< meshlib::std_pair_int_int >
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: int and int.

Generated from class std::pair<int, int>. Heap-allocated instances are held in Owned<std_pair_int_int>.

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::std_pair_int_int::construct ( first:core::ffi::c_int ,
second:core::ffi::c_int  ) -> meshlib::Owned< meshlib::std_pair_int_int >
static

Constructs the pair elementwise.

Calls MR_std_pair_int_int_Construct().

◆ construct_from_another()

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

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

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

◆ first()

auto meshlib::std_pair_int_int::first ( ) const -> &core::ffi::c_int

The first of the two elements, read-only.

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

◆ first_mut()

auto meshlib::std_pair_int_int::first_mut ( ) -> &mut core::ffi::c_int

The first of the two elements, mutable.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_std_pair_int_int_DefaultConstruct().

◆ second()

auto meshlib::std_pair_int_int::second ( ) const -> &core::ffi::c_int

The second of the two elements, read-only.

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

◆ second_mut()

auto meshlib::std_pair_int_int::second_mut ( ) -> &mut core::ffi::c_int

The second of the two elements, mutable.

Calls MR_std_pair_int_int_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: