Struct oxygengine_ha_renderer::mesh::geometry::GeometryVertices
source · pub struct GeometryVertices {
pub attributes: GeometryAttributes,
/* private fields */
}Fields§
§attributes: GeometryAttributesImplementations§
source§impl GeometryVertices
impl GeometryVertices
pub fn new(columns: &[(&str, GeometryValueType)]) -> Result<Self, MeshError>
pub fn with_attribute(self, name: impl ToString, value: GeometryValue) -> Self
pub fn with(self, attributes: GeometryAttributes) -> Result<Self, MeshError>
pub fn with_columns( self, columns: impl IntoIterator<Item = GeometryVerticesColumn> ) -> Result<Self, MeshError>
pub fn ensure_column( &mut self, name: &str, value_type: GeometryValueType ) -> Result<(), MeshError>
pub fn ensure_columns( &mut self, attributes: &GeometryAttributes ) -> Result<(), MeshError>
pub fn reserve(&mut self, additional: usize)
pub fn ensure_len(&mut self, count: usize)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn remove_column(&mut self, name: &str)
pub fn set_column(&mut self, column: GeometryVerticesColumn)
pub fn push_columns( &mut self, columns: impl IntoIterator<Item = GeometryVerticesColumn> ) -> Result<(), MeshError>
pub fn push(&mut self, attributes: GeometryAttributes) -> Result<(), MeshError>
pub fn set( &mut self, index: usize, attributes: GeometryAttributes ) -> Result<(), MeshError>
pub fn insert( &mut self, index: usize, attributes: GeometryAttributes ) -> Result<(), MeshError>
pub fn get(&self, index: usize) -> Option<GeometryAttributes>
pub fn get_column(&self, name: &str, index: usize) -> Option<GeometryValue>
pub fn remove(&mut self, index: usize) -> Option<GeometryAttributes>
pub fn columns_types(&self) -> impl Iterator<Item = (&str, GeometryValueType)>
pub fn column_type(&self, name: &str) -> Result<GeometryValueType, MeshError>
pub fn columns(&self) -> impl Iterator<Item = (&str, &GeometryValues)>
pub fn column(&self, name: &str) -> Result<&GeometryValues, MeshError>
pub fn iter(&self) -> GeometryVerticesIter<'_> ⓘ
Trait Implementations§
source§impl Clone for GeometryVertices
impl Clone for GeometryVertices
source§fn clone(&self) -> GeometryVertices
fn clone(&self) -> GeometryVertices
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GeometryVertices
impl Debug for GeometryVertices
source§impl Default for GeometryVertices
impl Default for GeometryVertices
source§fn default() -> GeometryVertices
fn default() -> GeometryVertices
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeometryVertices
impl<'de> Deserialize<'de> for GeometryVertices
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GeometryVertices> for GeometryVertices
impl PartialEq<GeometryVertices> for GeometryVertices
source§fn eq(&self, other: &GeometryVertices) -> bool
fn eq(&self, other: &GeometryVertices) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryVertices
impl Serialize for GeometryVertices
impl StructuralPartialEq for GeometryVertices
Auto Trait Implementations§
impl RefUnwindSafe for GeometryVertices
impl Send for GeometryVertices
impl Sync for GeometryVertices
impl Unpin for GeometryVertices
impl UnwindSafe for GeometryVertices
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more