Struct oxygengine_ha_renderer::mesh::geometry::GeometryTriangles
source · pub struct GeometryTriangles {
pub items: Vec<GeometryTriangle>,
pub attributes: GeometryAttributes,
}Fields§
§items: Vec<GeometryTriangle>§attributes: GeometryAttributesImplementations§
source§impl GeometryTriangles
impl GeometryTriangles
pub fn with(self, triangle: impl Into<GeometryTriangle>) -> Self
pub fn with_attribute(self, name: impl ToString, value: GeometryValue) -> Self
Trait Implementations§
source§impl Clone for GeometryTriangles
impl Clone for GeometryTriangles
source§fn clone(&self) -> GeometryTriangles
fn clone(&self) -> GeometryTriangles
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 GeometryTriangles
impl Debug for GeometryTriangles
source§impl Default for GeometryTriangles
impl Default for GeometryTriangles
source§fn default() -> GeometryTriangles
fn default() -> GeometryTriangles
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeometryTriangles
impl<'de> Deserialize<'de> for GeometryTriangles
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 From<&[GeometryTriangle]> for GeometryTriangles
impl From<&[GeometryTriangle]> for GeometryTriangles
source§fn from(items: &[GeometryTriangle]) -> Self
fn from(items: &[GeometryTriangle]) -> Self
Converts to this type from the input type.
source§impl From<()> for GeometryTriangles
impl From<()> for GeometryTriangles
source§impl From<Vec<GeometryTriangle, Global>> for GeometryTriangles
impl From<Vec<GeometryTriangle, Global>> for GeometryTriangles
source§fn from(items: Vec<GeometryTriangle>) -> Self
fn from(items: Vec<GeometryTriangle>) -> Self
Converts to this type from the input type.
source§impl FromIterator<GeometryTriangle> for GeometryTriangles
impl FromIterator<GeometryTriangle> for GeometryTriangles
source§fn from_iter<I: IntoIterator<Item = GeometryTriangle>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = GeometryTriangle>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl PartialEq<GeometryTriangles> for GeometryTriangles
impl PartialEq<GeometryTriangles> for GeometryTriangles
source§fn eq(&self, other: &GeometryTriangles) -> bool
fn eq(&self, other: &GeometryTriangles) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryTriangles
impl Serialize for GeometryTriangles
impl StructuralPartialEq for GeometryTriangles
Auto Trait Implementations§
impl RefUnwindSafe for GeometryTriangles
impl Send for GeometryTriangles
impl Sync for GeometryTriangles
impl Unpin for GeometryTriangles
impl UnwindSafe for GeometryTriangles
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