Struct michelangelo::Mesh

source ·
pub struct Mesh {
    pub vertices: CVec<Vertex>,
    pub indices: CVec<u16>,
}

Fields

vertices: CVec<Vertex>indices: CVec<u16>

Implementations

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Performs the += operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Is the object’s dynamic part stored compactly?
Size of the dynamic part in bytes
Copy the static part of source to dest and compactly store the dynamic part of source as the new dynamic part of dest at new_dynamic_part. This semantically moves source into dest. Read more
Creates a clone of self with the dynamic part guaranteed to be stored freely. Read more
Total size of the object (static part + dynamic part)
Get a pointer to behind the static part of self (commonly used place for the dynamic part)
Like compact with new_dynamic_part set to dest.behind()
Formats the value using the given formatter. Read more
Called at the beginning of a generation. Read more
Called at the end of a generation. Returns the number of vertices and indices added since the last time begin_geometry was called. Read more
abort_geometry is called instead of end_geometry if an error occured while producing the geometry and we won’t be able to finish. Read more
Inserts a vertex, providing its position, and optionally a normal. Retuns a vertex id that is only valid between begin_geometry and end_geometry. Read more
Insert a triangle made of vertices that were added after the last call to begin_geometry. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.