MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::FaceColors:

Public Member Functions

auto assign_from_another (_other:&meshlib::FaceColors) -> &mut meshlib::FaceColors
void assign (count:usize, val:&meshlib::Color)
auto op_equal (b:&meshlib::FaceColors) const -> bool
auto op_not_equal (b:&meshlib::FaceColors) const -> bool
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::Color)
void resize_no_init (targetSize:usize, mode:Option< meshlib::ReserveMode >)
auto capacity () const -> usize
void reserve (capacity:usize)
void shrink_to_fit ()
auto index (i:meshlib::FaceId) const -> &meshlib::Color
auto index_mut (i:meshlib::FaceId) -> &mut meshlib::Color
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::Color)
void auto_resize_set_3 (pos:meshlib::FaceId, len:usize, val:meshlib::Color)
void auto_resize_set_2 (i:meshlib::FaceId, val:meshlib::Color)
auto auto_resize_at (i:meshlib::FaceId) -> &mut meshlib::Color
void push_back_const_mr_color_ref (t:&meshlib::Color)
void push_back_mr_color_rvalue_ref (t:&mut meshlib::Color)
void pop_back ()
auto front () const -> &meshlib::Color
auto front_mut () -> &mut meshlib::Color
auto back () const -> &meshlib::Color
auto back_mut () -> &mut meshlib::Color
auto begin_id () const -> meshlib::FaceId
auto back_id () const -> meshlib::FaceId
auto end_id () const -> meshlib::FaceId
auto data_mut () -> Option<&mut meshlib::Color >
auto data () const -> Option<&meshlib::Color >
void swap (b:&mut meshlib::FaceColors)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_MR_Color_MR_Allocator_MR_Color
auto vec_mut () -> &mut meshlib::std_vector_MR_Color_MR_Allocator_MR_Color
void set_vec (value:&meshlib::std_vector_MR_Color_MR_Allocator_MR_Color)

Static Public Member Functions

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

Generated from class MR::FaceColors. Heap-allocated instances are held in Owned<FaceColors>.

Member Function Documentation

◆ assign()

void meshlib::FaceColors::assign ( count:usize ,
val:&meshlib::Color  )

replaces the contents with count copies of val Generated from method MR::FaceColors::assign.

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

◆ assign_from_another()

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

Generated from method MR::FaceColors::operator=.

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

◆ auto_resize_at()

auto meshlib::FaceColors::auto_resize_at ( i:meshlib::FaceId ) -> &mut meshlib::Color

this accessor automatically adjusts the size of the vector Generated from method MR::FaceColors::autoResizeAt.

Calls MR_FaceColors_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::FaceColors::auto_resize_set_2 ( i:meshlib::FaceId ,
val:meshlib::Color  )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::FaceColors::autoResizeSet.

Calls MR_FaceColors_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::FaceColors::auto_resize_set_3 ( pos:meshlib::FaceId ,
len:usize ,
val:meshlib::Color  )

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::FaceColors::autoResizeSet.

Calls MR_FaceColors_autoResizeSet_3().

◆ back()

auto meshlib::FaceColors::back ( ) const -> &meshlib::Color

Generated from method MR::FaceColors::back.

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

◆ back_id()

auto meshlib::FaceColors::back_id ( ) const -> meshlib::FaceId

returns the identifier of the back() element Generated from method MR::FaceColors::backId.

Calls MR_FaceColors_backId().

◆ back_mut()

auto meshlib::FaceColors::back_mut ( ) -> &mut meshlib::Color

Generated from method MR::FaceColors::back.

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

◆ begin_id()

auto meshlib::FaceColors::begin_id ( ) const -> meshlib::FaceId

returns the identifier of the first element Generated from method MR::FaceColors::beginId.

Calls MR_FaceColors_beginId().

◆ capacity()

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

Generated from method MR::FaceColors::capacity.

Calls MR_FaceColors_capacity().

◆ clear()

void meshlib::FaceColors::clear ( )

Generated from method MR::FaceColors::clear.

Calls MR_FaceColors_clear().

◆ construct()

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

creates a vector with size elements with default value Generated from constructor MR::FaceColors::FaceColors.

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

◆ construct_fill()

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

creates a vector with size elements with the given value Generated from constructor MR::FaceColors::FaceColors.

Calls MR_FaceColors_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::FaceColors::construct_from_another ( _other:&meshlib::FaceColors ) -> meshlib::Owned< meshlib::FaceColors >
static

Generated from constructor MR::FaceColors::FaceColors.

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

◆ data()

auto meshlib::FaceColors::data ( ) const -> Option<&meshlib::Color >

Generated from method MR::FaceColors::data.

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

◆ data_mut()

auto meshlib::FaceColors::data_mut ( ) -> Option<&mut meshlib::Color >

Generated from method MR::FaceColors::data.

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

◆ empty()

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

Generated from method MR::FaceColors::empty.

Calls MR_FaceColors_empty().

◆ end_id()

auto meshlib::FaceColors::end_id ( ) const -> meshlib::FaceId

returns backId() + 1 Generated from method MR::FaceColors::endId.

Calls MR_FaceColors_endId().

◆ front()

auto meshlib::FaceColors::front ( ) const -> &meshlib::Color

Generated from method MR::FaceColors::front.

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

◆ front_mut()

auto meshlib::FaceColors::front_mut ( ) -> &mut meshlib::Color

Generated from method MR::FaceColors::front.

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

◆ heap_bytes()

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

returns the amount of memory this object occupies on heap Generated from method MR::FaceColors::heapBytes.

Calls MR_FaceColors_heapBytes().

◆ index()

auto meshlib::FaceColors::index ( i:meshlib::FaceId ) const -> &meshlib::Color

Generated from method MR::FaceColors::operator[].

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

◆ index_mut()

auto meshlib::FaceColors::index_mut ( i:meshlib::FaceId ) -> &mut meshlib::Color

Generated from method MR::FaceColors::operator[].

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

◆ max_size()

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

Generated from method MR::FaceColors::max_size.

Calls MR_FaceColors_max_size().

◆ new()

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

creates empty vector

Calls MR_FaceColors_DefaultConstruct().

◆ op_equal()

auto meshlib::FaceColors::op_equal ( b:&meshlib::FaceColors ) const -> bool

Generated from method MR::FaceColors::operator==.

Calls MR_equal_MR_FaceColors().

◆ op_not_equal()

auto meshlib::FaceColors::op_not_equal ( b:&meshlib::FaceColors ) const -> bool

Generated from method MR::FaceColors::operator!=.

Calls MR_not_equal_MR_FaceColors().

◆ pop_back()

void meshlib::FaceColors::pop_back ( )

Generated from method MR::FaceColors::pop_back.

Calls MR_FaceColors_pop_back().

◆ push_back_const_mr_color_ref()

void meshlib::FaceColors::push_back_const_mr_color_ref ( t:&meshlib::Color )

Generated from method MR::FaceColors::push_back.

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

◆ push_back_mr_color_rvalue_ref()

void meshlib::FaceColors::push_back_mr_color_rvalue_ref ( t:&mut meshlib::Color )

Generated from method MR::FaceColors::push_back.

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

◆ reserve()

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

Generated from method MR::FaceColors::reserve.

Calls MR_FaceColors_reserve().

◆ resize_1()

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

Generated from method MR::FaceColors::resize.

Calls MR_FaceColors_resize_1().

◆ resize_2()

void meshlib::FaceColors::resize_2 ( newSize:usize ,
t:&meshlib::Color  )

Generated from method MR::FaceColors::resize.

Calls MR_FaceColors_resize_2().

◆ resize_no_init()

void meshlib::FaceColors::resize_no_init ( targetSize:usize ,
mode:Option< meshlib::ReserveMode >  )

resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor ) Generated from method MR::FaceColors::resizeNoInit.

Calls MR_FaceColors_resizeNoInit().

◆ resize_with_reserve_1()

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

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::FaceColors::resizeWithReserve.

Calls MR_FaceColors_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::FaceColors::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::Color  )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::FaceColors::resizeWithReserve.

Calls MR_FaceColors_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::FaceColors::set_vec ( value:&meshlib::std_vector_MR_Color_MR_Allocator_MR_Color )

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

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

◆ shrink_to_fit()

void meshlib::FaceColors::shrink_to_fit ( )

Generated from method MR::FaceColors::shrink_to_fit.

Calls MR_FaceColors_shrink_to_fit().

◆ size()

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

Generated from method MR::FaceColors::size.

Calls MR_FaceColors_size().

◆ swap()

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

Generated from method MR::FaceColors::swap.

Calls MR_FaceColors_swap().

◆ vec()

auto meshlib::FaceColors::vec ( ) const -> &meshlib::std_vector_MR_Color_MR_Allocator_MR_Color

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

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

◆ vec_mut()

auto meshlib::FaceColors::vec_mut ( ) -> &mut meshlib::std_vector_MR_Color_MR_Allocator_MR_Color

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

Calls MR_FaceColors_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: