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 |
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>.
| 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.
| 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.
|
static |
Constructs a new instance.
Calls MR_std_string_view_ConstructFrom(). The reference to the parameter other might be preserved in the constructed object.
|
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.
| 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.
| 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.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_std_string_view_DefaultConstruct().
| auto meshlib::std_string_view::size | ( | ) | const -> usize |
The number of characters in the string.
Calls MR_std_string_view_size().