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

Public Member Functions

void assign_from_another (other:&meshlib::expected_std_vector_MR_EdgePoint_MR_PathError)
auto success () const -> bool
auto value () const -> Option<&meshlib::std_vector_MR_EdgePoint >
auto error () const -> Option<&meshlib::PathError >
auto value_mut () -> Option<&mut meshlib::std_vector_MR_EdgePoint >
auto error_mut () -> Option<&mut meshlib::PathError >
auto as_result () const -> Result<&meshlib::std_vector_MR_EdgePoint, &meshlib::PathError >
 The value as Ok, or the error as Err.
auto as_result_mut () -> Result<&mut meshlib::std_vector_MR_EdgePoint, &mut meshlib::PathError >
 The value as Ok, or the error as Err, as mutable references.

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::expected_std_vector_MR_EdgePoint_MR_PathError >
static auto construct_from_another (other:&meshlib::expected_std_vector_MR_EdgePoint_MR_PathError) -> meshlib::Owned< meshlib::expected_std_vector_MR_EdgePoint_MR_PathError >
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 either a std::vector<MR::EdgePoint> that represents success or a MR::PathError that represents an error.

Generated from class expected<std::vector<MR::EdgePoint>, MR::PathError>. Heap-allocated instances are held in Owned<expected_std_vector_MR_EdgePoint_MR_PathError>.

Member Function Documentation

◆ as_result()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::as_result ( ) const -> Result<&meshlib::std_vector_MR_EdgePoint, &meshlib::PathError >

The value as Ok, or the error as Err.

◆ as_result_mut()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::as_result_mut ( ) -> Result<&mut meshlib::std_vector_MR_EdgePoint, &mut meshlib::PathError >

The value as Ok, or the error as Err, as mutable references.

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

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

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

◆ error()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::error ( ) const -> Option<&meshlib::PathError >

If this instance represents an error, returns the stored MR::PathError. Otherwise null.

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

◆ error_mut()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::error_mut ( ) -> Option<&mut meshlib::PathError >

If this instance represents an error, returns the stored MR::PathError. Otherwise null. This version returns a mutable pointer.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_DefaultConstruct().

◆ success()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::success ( ) const -> bool

Returns true if this instance represents success, or false if it represents an error.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_success().

◆ value()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::value ( ) const -> Option<&meshlib::std_vector_MR_EdgePoint >

If this instance represents success, returns the stored std::vector<MR::EdgePoint>. Otherwise null.

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

◆ value_mut()

auto meshlib::expected_std_vector_MR_EdgePoint_MR_PathError::value_mut ( ) -> Option<&mut meshlib::std_vector_MR_EdgePoint >

If this instance represents success, returns the stored std::vector<MR::EdgePoint>. Otherwise null. This version returns a mutable pointer.

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


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