Public Member Functions | |
| void | assign_from_another (other:&meshlib::expected_MR_Mesh_std_string) |
| auto | success () const -> bool |
| auto | value () const -> Option<&meshlib::Mesh > |
| auto | error () const -> Option<&meshlib::std_string > |
| auto | value_mut () -> Option<&mut meshlib::Mesh > |
| auto | error_mut () -> Option<&mut meshlib::std_string > |
| auto | as_result () const -> Result<&meshlib::Mesh, &meshlib::std_string > |
| The value as Ok, or the error as Err. | |
| auto | as_result_mut () -> Result<&mut meshlib::Mesh, &mut meshlib::std_string > |
| The value as Ok, or the error as Err, as mutable references. | |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string > |
| static auto | construct_from_another (other:&meshlib::expected_MR_Mesh_std_string) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string > |
| 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 |
Stores either a MR::Mesh that represents success or a std::string that represents an error.
Generated from class expected<MR::Mesh, std::string>. Heap-allocated instances are held in Owned<expected_MR_Mesh_std_string>.
| auto meshlib::expected_MR_Mesh_std_string::as_result | ( | ) | const -> Result<&meshlib::Mesh, &meshlib::std_string > |
The value as Ok, or the error as Err.
| auto meshlib::expected_MR_Mesh_std_string::as_result_mut | ( | ) | -> Result<&mut meshlib::Mesh, &mut meshlib::std_string > |
The value as Ok, or the error as Err, as mutable references.
| void meshlib::expected_MR_Mesh_std_string::assign_from_another | ( | other:&meshlib::expected_MR_Mesh_std_string | ) |
Assigns the contents from another instance. Both objects remain alive after the call.
Calls MR_expected_MR_Mesh_std_string_AssignFromAnother(). The reference to the parameter other might be preserved in this object.
|
static |
Constructs a copy of another instance. The source remains alive.
Calls MR_expected_MR_Mesh_std_string_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.
| auto meshlib::expected_MR_Mesh_std_string::error | ( | ) | const -> Option<&meshlib::std_string > |
If this instance represents an error, returns the stored std::string. Otherwise null.
Calls MR_expected_MR_Mesh_std_string_error(). The reference to this object might be preserved as the return value.
| auto meshlib::expected_MR_Mesh_std_string::error_mut | ( | ) | -> Option<&mut meshlib::std_string > |
If this instance represents an error, returns the stored std::string. Otherwise null. This version returns a mutable pointer.
Calls MR_expected_MR_Mesh_std_string_error_mut(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_expected_MR_Mesh_std_string_DefaultConstruct().
| auto meshlib::expected_MR_Mesh_std_string::success | ( | ) | const -> bool |
Returns true if this instance represents success, or false if it represents an error.
Calls MR_expected_MR_Mesh_std_string_success().
| auto meshlib::expected_MR_Mesh_std_string::value | ( | ) | const -> Option<&meshlib::Mesh > |
If this instance represents success, returns the stored MR::Mesh. Otherwise null.
Calls MR_expected_MR_Mesh_std_string_value(). The reference to this object might be preserved as the return value.
| auto meshlib::expected_MR_Mesh_std_string::value_mut | ( | ) | -> Option<&mut meshlib::Mesh > |
If this instance represents success, returns the stored MR::Mesh. Otherwise null. This version returns a mutable pointer.
Calls MR_expected_MR_Mesh_std_string_value_mut(). The reference to this object might be preserved as the return value.