MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::Buffer_MR_PixelId_MR_PixelId Struct Reference

std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods More...

Inheritance diagram for meshlib::Buffer_MR_PixelId_MR_PixelId:

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId >) -> &mut meshlib::Buffer_MR_PixelId_MR_PixelId
auto capacity () const -> usize
auto size () const -> usize
auto empty () const -> bool
void clear ()
void resize (newSize:usize)
auto index (i:meshlib::PixelId) const -> &meshlib::NoDefInit_MR_PixelId
auto index_mut (i:meshlib::PixelId) -> &mut meshlib::NoDefInit_MR_PixelId
auto data_mut () -> Option<&mut meshlib::NoDefInit_MR_PixelId >
auto data () const -> Option<&mut meshlib::NoDefInit_MR_PixelId >
auto begin_id () const -> meshlib::PixelId
auto back_id () const -> meshlib::PixelId
auto end_id () const -> meshlib::PixelId
auto heap_bytes () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId >
static auto construct_from_another (_other:meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId >) -> meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId >
static auto construct (size:usize) -> meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods

Template Parameters
Vtype of stored elements
Itype of index (shall be convertible to size_t)

Generated from class MR::Buffer<MR::PixelId, MR::PixelId>.

Generated from class MR::Buffer<MR::PixelId, MR::PixelId>. Heap-allocated instances are held in Owned<Buffer_MR_PixelId_MR_PixelId>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::assign_from_another ( _other:meshlib::Owned< meshlib::Buffer_MR_PixelId_MR_PixelId > ) -> &mut meshlib::Buffer_MR_PixelId_MR_PixelId

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::operator=.

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

◆ back_id()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::back_id ( ) const -> meshlib::PixelId

returns the identifier of the back() element Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::backId.

Calls MR_Buffer_MR_PixelId_MR_PixelId_backId().

◆ begin_id()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::begin_id ( ) const -> meshlib::PixelId

returns the identifier of the first element Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::beginId.

Calls MR_Buffer_MR_PixelId_MR_PixelId_beginId().

◆ capacity()

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

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::capacity.

Calls MR_Buffer_MR_PixelId_MR_PixelId_capacity().

◆ clear()

void meshlib::Buffer_MR_PixelId_MR_PixelId::clear ( )

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::clear.

Calls MR_Buffer_MR_PixelId_MR_PixelId_clear().

◆ construct()

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

Generated from constructor MR::Buffer<MR::PixelId, MR::PixelId>::Buffer.

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

◆ construct_from_another()

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

Generated from constructor MR::Buffer<MR::PixelId, MR::PixelId>::Buffer.

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

◆ data()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::data ( ) const -> Option<&mut meshlib::NoDefInit_MR_PixelId >

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::data.

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

◆ data_mut()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::data_mut ( ) -> Option<&mut meshlib::NoDefInit_MR_PixelId >

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::data.

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

◆ empty()

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

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::empty.

Calls MR_Buffer_MR_PixelId_MR_PixelId_empty().

◆ end_id()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::end_id ( ) const -> meshlib::PixelId

returns backId() + 1 Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::endId.

Calls MR_Buffer_MR_PixelId_MR_PixelId_endId().

◆ heap_bytes()

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

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

Calls MR_Buffer_MR_PixelId_MR_PixelId_heapBytes().

◆ index()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::index ( i:meshlib::PixelId ) const -> &meshlib::NoDefInit_MR_PixelId

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::operator[].

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

◆ index_mut()

auto meshlib::Buffer_MR_PixelId_MR_PixelId::index_mut ( i:meshlib::PixelId ) -> &mut meshlib::NoDefInit_MR_PixelId

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::operator[].

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Buffer_MR_PixelId_MR_PixelId_DefaultConstruct().

◆ resize()

void meshlib::Buffer_MR_PixelId_MR_PixelId::resize ( newSize:usize )

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::resize.

Calls MR_Buffer_MR_PixelId_MR_PixelId_resize().

◆ size()

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

Generated from method MR::Buffer<MR::PixelId, MR::PixelId>::size.

Calls MR_Buffer_MR_PixelId_MR_PixelId_size().


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