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

Public Member Functions

void assign_from_another (other:&meshlib::std_string_view)
void assign_from (other:&str)
auto size () const -> usize
auto data () const -> *const core::ffi::c_char
auto data_end () const -> *const core::ffi::c_char

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::std_string_view >
static auto construct_from_another (other:&meshlib::std_string_view) -> meshlib::Owned< meshlib::std_string_view >
static auto construct_from (other:&str) -> meshlib::Owned< meshlib::std_string_view >
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

A non-owning string view. Not necessarily null-terminated.

Generated from class std::string_view. Heap-allocated instances are held in Owned<std_string_view>.

Member Function Documentation

◆ assign_from()

void meshlib::std_string_view::assign_from ( other:& str)

Assigns the contents.

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

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::std_string_view::construct_from ( other:& str) -> meshlib::Owned< meshlib::std_string_view >
static

Constructs a new instance.

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

◆ construct_from_another()

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

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

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

◆ data()

auto meshlib::std_string_view::data ( ) const -> *const core::ffi::c_char

Returns the string contents, NOT necessarily null-terminated.

Calls MR_std_string_view_data(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ data_end()

auto meshlib::std_string_view::data_end ( ) const -> *const core::ffi::c_char

Returns a pointer to the end of string. Not dereferencable.

Calls MR_std_string_view_data_end(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_std_string_view_DefaultConstruct().

◆ size()

auto meshlib::std_string_view::size ( ) const -> usize

The number of characters in the string.

Calls MR_std_string_view_size().


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