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

Static Public Attributes

static const meshlib::ReserveMode Exact
 < exactly the target size: for a vector resized once
static const meshlib::ReserveMode Grow
 < the vector grows the capacity geometrically by its own policy, as push_back does, so repeated small growths copy the elements only O(log) times

Detailed Description

how resizeNoInit reserves the memory when the capacity is short

Generated from enum MR::ReserveMode. The constants are associated constants of this type.

Member Data Documentation

◆ Exact

const meshlib::ReserveMode meshlib::ReserveMode::Exact
static

< exactly the target size: for a vector resized once

◆ Grow

const meshlib::ReserveMode meshlib::ReserveMode::Grow
static

< the vector grows the capacity geometrically by its own policy, as push_back does, so repeated small growths copy the elements only O(log) times


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