Struct oxygengine_ha_renderer::mesh::geometry::GeometryTriangle
source · pub struct GeometryTriangle {
pub indices: [usize; 3],
pub attributes: GeometryAttributes,
}Fields§
§indices: [usize; 3]§attributes: GeometryAttributesImplementations§
source§impl GeometryTriangle
impl GeometryTriangle
pub fn new(indices: [usize; 3]) -> Self
pub fn with_attribute(self, name: impl ToString, value: GeometryValue) -> Self
Trait Implementations§
source§impl Clone for GeometryTriangle
impl Clone for GeometryTriangle
source§fn clone(&self) -> GeometryTriangle
fn clone(&self) -> GeometryTriangle
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 GeometryTriangle
impl Debug for GeometryTriangle
source§impl Default for GeometryTriangle
impl Default for GeometryTriangle
source§fn default() -> GeometryTriangle
fn default() -> GeometryTriangle
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeometryTriangle
impl<'de> Deserialize<'de> for GeometryTriangle
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 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<GeometryTriangle> for GeometryTriangle
impl PartialEq<GeometryTriangle> for GeometryTriangle
source§fn eq(&self, other: &GeometryTriangle) -> bool
fn eq(&self, other: &GeometryTriangle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryTriangle
impl Serialize for GeometryTriangle
impl StructuralPartialEq for GeometryTriangle
Auto Trait Implementations§
impl RefUnwindSafe for GeometryTriangle
impl Send for GeometryTriangle
impl Sync for GeometryTriangle
impl Unpin for GeometryTriangle
impl UnwindSafe for GeometryTriangle
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