Struct oxygengine_composite_renderer::composite_renderer::Triangles [−][src]
pub struct Triangles<'a> { pub image: Cow<'a, str>, pub color: Color, pub vertices: Vec<(Vec2, Vec2)>, pub faces: Vec<TriangleFace>, }
Fields
image: Cow<'a, str>
color: Color
vertices: Vec<(Vec2, Vec2)>
[(position, tex coord)]
faces: Vec<TriangleFace>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Triangles<'a>
impl<'a> UnwindSafe for Triangles<'a>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.