Struct conrod::widget::primitive::shape::triangles::Triangle [] [src]

pub struct Triangle<V>(pub [V; 3])
where
    V: Vertex
;

A single triangle described by three vertices.

Methods

impl<V> Triangle<V> where
    V: Vertex
[src]

Shift the triangle by the given amount by adding it onto the position of each point.

Trait Implementations

impl<V: Copy> Copy for Triangle<V> where
    V: Vertex
[src]

impl<V: Clone> Clone for Triangle<V> where
    V: Vertex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Debug> Debug for Triangle<V> where
    V: Vertex
[src]

Formats the value using the given formatter.

impl<V: PartialEq> PartialEq for Triangle<V> where
    V: Vertex
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<V> Deref for Triangle<V> where
    V: Vertex
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<V> From<[V; 3]> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> From<(V, V, V)> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> Into<[V; 3]> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> Into<(V, V, V)> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.