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

Public Member Functions

auto assign_from_another (_other:&meshlib::Vector_MR_MeshTexture_MR_TextureId) -> &mut meshlib::Vector_MR_MeshTexture_MR_TextureId
void assign (count:usize, val:&meshlib::MeshTexture)
void clear ()
auto empty () const -> bool
auto size () const -> usize
auto max_size () const -> usize
void resize_1 (newSize:usize)
void resize_2 (newSize:usize, t:&meshlib::MeshTexture)
auto capacity () const -> usize
void reserve (capacity:usize)
void shrink_to_fit ()
auto index (i:meshlib::TextureId) const -> &meshlib::MeshTexture
auto index_mut (i:meshlib::TextureId) -> &mut meshlib::MeshTexture
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::MeshTexture)
void auto_resize_set_3 (pos:meshlib::TextureId, len:usize, val:&meshlib::MeshTexture)
void auto_resize_set_2 (i:meshlib::TextureId, val:&meshlib::MeshTexture)
auto auto_resize_at (i:meshlib::TextureId) -> &mut meshlib::MeshTexture
void push_back_const_mr_mesh_texture_ref (t:&meshlib::MeshTexture)
void push_back_mr_mesh_texture_rvalue_ref (t:&mut meshlib::MeshTexture)
void pop_back ()
auto emplace_back (args:&mut meshlib::MeshTexture) -> &mut meshlib::MeshTexture
auto front () const -> &meshlib::MeshTexture
auto front_mut () -> &mut meshlib::MeshTexture
auto back () const -> &meshlib::MeshTexture
auto back_mut () -> &mut meshlib::MeshTexture
auto begin_id () const -> meshlib::TextureId
auto back_id () const -> meshlib::TextureId
auto end_id () const -> meshlib::TextureId
auto data_mut () -> Option<&mut meshlib::MeshTexture >
auto data () const -> Option<&meshlib::MeshTexture >
void swap (b:&mut meshlib::Vector_MR_MeshTexture_MR_TextureId)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture
auto vec_mut () -> &mut meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture
void set_vec (value:&meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static auto construct_from_another (_other:&meshlib::Vector_MR_MeshTexture_MR_TextureId) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static auto construct (size:usize) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static auto construct_fill (size:usize, val:&meshlib::MeshTexture) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
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

Vector<T> is indexed by size_t Generated from class MR::Vector<MR::MeshTexture, MR::TextureId>.

Generated from class MR::Vector<MR::MeshTexture, MR::TextureId>. Heap-allocated instances are held in Owned<Vector_MR_MeshTexture_MR_TextureId>.

Member Function Documentation

◆ assign()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::assign ( count:usize ,
val:&meshlib::MeshTexture  )

replaces the contents with count copies of val Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::assign.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_assign(). The reference to things referred to by the parameter val (if any) might be preserved in this object.

◆ assign_from_another()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::assign_from_another ( _other:&meshlib::Vector_MR_MeshTexture_MR_TextureId ) -> &mut meshlib::Vector_MR_MeshTexture_MR_TextureId

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::operator=.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ auto_resize_at()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::auto_resize_at ( i:meshlib::TextureId ) -> &mut meshlib::MeshTexture

this accessor automatically adjusts the size of the vector Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::autoResizeAt.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::auto_resize_set_2 ( i:meshlib::TextureId ,
val:&meshlib::MeshTexture  )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::autoResizeSet.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::auto_resize_set_3 ( pos:meshlib::TextureId ,
len:usize ,
val:&meshlib::MeshTexture  )

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::autoResizeSet.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_autoResizeSet_3().

◆ back()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::back ( ) const -> &meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::back.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_back(). The reference to this object might be preserved in the return value.

◆ back_id()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::back_id ( ) const -> meshlib::TextureId

returns the identifier of the back() element Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::backId.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_backId().

◆ back_mut()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::back_mut ( ) -> &mut meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::back.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_back_mut(). The reference to this object might be preserved in the return value.

◆ begin_id()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::begin_id ( ) const -> meshlib::TextureId

returns the identifier of the first element Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::beginId.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_beginId().

◆ capacity()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::capacity ( ) const -> usize

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::capacity.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_capacity().

◆ clear()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::clear ( )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::clear.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_clear().

◆ construct()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::construct ( size:usize ) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static

creates a vector with size elements with default value Generated from constructor MR::Vector<MR::MeshTexture, MR::TextureId>::Vector.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_Construct(). The reference to the parameter size might be preserved in the constructed object.

◆ construct_fill()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::construct_fill ( size:usize ,
val:&meshlib::MeshTexture  ) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static

creates a vector with size elements with the given value Generated from constructor MR::Vector<MR::MeshTexture, MR::TextureId>::Vector.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_Construct_fill(). The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::construct_from_another ( _other:&meshlib::Vector_MR_MeshTexture_MR_TextureId ) -> meshlib::Owned< meshlib::Vector_MR_MeshTexture_MR_TextureId >
static

Generated from constructor MR::Vector<MR::MeshTexture, MR::TextureId>::Vector.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ data()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::data ( ) const -> Option<&meshlib::MeshTexture >

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::data.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_data(). The reference to this object might be preserved in the return value.

◆ data_mut()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::data_mut ( ) -> Option<&mut meshlib::MeshTexture >

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::data.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_data_mut(). The reference to this object might be preserved in the return value.

◆ emplace_back()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::emplace_back ( args:&mut meshlib::MeshTexture ) -> &mut meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::emplace_back<MR::MeshTexture>.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_emplace_back().

◆ empty()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::empty ( ) const -> bool

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::empty.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_empty().

◆ end_id()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::end_id ( ) const -> meshlib::TextureId

returns backId() + 1 Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::endId.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_endId().

◆ front()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::front ( ) const -> &meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::front.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_front(). The reference to this object might be preserved in the return value.

◆ front_mut()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::front_mut ( ) -> &mut meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::front.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_front_mut(). The reference to this object might be preserved in the return value.

◆ heap_bytes()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::heapBytes.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_heapBytes().

◆ index()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::index ( i:meshlib::TextureId ) const -> &meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::operator[].

Calls MR_Vector_MR_MeshTexture_MR_TextureId_index(). The reference to this object might be preserved in the return value.

◆ index_mut()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::index_mut ( i:meshlib::TextureId ) -> &mut meshlib::MeshTexture

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::operator[].

Calls MR_Vector_MR_MeshTexture_MR_TextureId_index_mut(). The reference to this object might be preserved in the return value.

◆ max_size()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::max_size ( ) const -> usize

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::max_size.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_max_size().

◆ new()

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

creates empty vector

Calls MR_Vector_MR_MeshTexture_MR_TextureId_DefaultConstruct().

◆ pop_back()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::pop_back ( )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::pop_back.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_pop_back().

◆ push_back_const_mr_mesh_texture_ref()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::push_back_const_mr_mesh_texture_ref ( t:&meshlib::MeshTexture )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::push_back.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_push_back_const_MR_MeshTexture_ref(). The reference to things referred to by the parameter t (if any) might be preserved in this object.

◆ push_back_mr_mesh_texture_rvalue_ref()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::push_back_mr_mesh_texture_rvalue_ref ( t:&mut meshlib::MeshTexture )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::push_back.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_push_back_MR_MeshTexture_rvalue_ref(). The reference to things referred to by the parameter t (if any) might be preserved in this object.

◆ reserve()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::reserve ( capacity:usize )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::reserve.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_reserve().

◆ resize_1()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::resize_1 ( newSize:usize )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::resize.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_resize_1().

◆ resize_2()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::resize_2 ( newSize:usize ,
t:&meshlib::MeshTexture  )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::resize.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_resize_2().

◆ resize_with_reserve_1()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::resize_with_reserve_1 ( newSize:usize )

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::resizeWithReserve.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::MeshTexture  )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::resizeWithReserve.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::set_vec ( value:&meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture )

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::Vector<MR::MeshTexture, MR::TextureId> named vec.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_Set_vec(). The reference to the parameter value might be preserved in this object in element vec.

◆ shrink_to_fit()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::shrink_to_fit ( )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::shrink_to_fit.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_shrink_to_fit().

◆ size()

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

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::size.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_size().

◆ swap()

void meshlib::Vector_MR_MeshTexture_MR_TextureId::swap ( b:&mut meshlib::Vector_MR_MeshTexture_MR_TextureId )

Generated from method MR::Vector<MR::MeshTexture, MR::TextureId>::swap.

Calls MR_Vector_MR_MeshTexture_MR_TextureId_swap().

◆ vec()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::vec ( ) const -> &meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::Vector<MR::MeshTexture, MR::TextureId> named vec.

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

◆ vec_mut()

auto meshlib::Vector_MR_MeshTexture_MR_TextureId::vec_mut ( ) -> &mut meshlib::std_vector_MR_MeshTexture_MR_Allocator_MR_MeshTexture

The user can directly manipulate the vector, they can't break anything anyway. Returns a mutable pointer to a member variable of class MR::Vector<MR::MeshTexture, MR::TextureId> named vec.

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


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