Struct nannou::geom::vertex::Rgba [−][src]
A vertex that is colored with the given linear RGBA
color.
Methods
impl<V> Rgba<V>
[src]
impl<V> Rgba<V>
ⓘImportant traits for &'a mut Rpub fn vertex(&self) -> &V
[src]
ⓘImportant traits for &'a mut R
pub fn vertex(&self) -> &V
A reference to the inner vertex.
pub fn rgba(&self) -> &Rgba
[src]
pub fn rgba(&self) -> &Rgba
A reference to the inner rgba.
Trait Implementations
impl<S, V> IntoVertex<S> for Rgba<V> where
S: BaseFloat,
V: Vertex<Scalar = S>,
(V, Color): IntoVertex<S>,
[src]
impl<S, V> IntoVertex<S> for Rgba<V> where
S: BaseFloat,
V: Vertex<Scalar = S>,
(V, Color): IntoVertex<S>,
fn into_vertex(self) -> Vertex<S>
[src]
fn into_vertex(self) -> Vertex<S>
Convert self
into a Vertex.
impl<V: Copy> Copy for Rgba<V>
[src]
impl<V: Copy> Copy for Rgba<V>
impl<V: Clone> Clone for Rgba<V>
[src]
impl<V: Clone> Clone for Rgba<V>
fn clone(&self) -> Rgba<V>
[src]
fn clone(&self) -> Rgba<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<V: Debug> Debug for Rgba<V>
[src]
impl<V: Debug> Debug for Rgba<V>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<V: PartialEq> PartialEq for Rgba<V>
[src]
impl<V: PartialEq> PartialEq for Rgba<V>
fn eq(&self, other: &Rgba<V>) -> bool
[src]
fn eq(&self, other: &Rgba<V>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rgba<V>) -> bool
[src]
fn ne(&self, other: &Rgba<V>) -> bool
This method tests for !=
.
impl<V> Deref for Rgba<V>
[src]
impl<V> Deref for Rgba<V>
type Target = V
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<V> DerefMut for Rgba<V>
[src]
impl<V> DerefMut for Rgba<V>
impl<V> From<(V, Rgba)> for Rgba<V>
[src]
impl<V> From<(V, Rgba)> for Rgba<V>
impl<V> Into<(V, Rgba)> for Rgba<V>
[src]
impl<V> Into<(V, Rgba)> for Rgba<V>
impl<V> Vertex for Rgba<V> where
V: Vertex,
[src]
impl<V> Vertex for Rgba<V> where
V: Vertex,
impl<V> Vertex2d for Rgba<V> where
V: Vertex2d,
[src]
impl<V> Vertex2d for Rgba<V> where
V: Vertex2d,
impl<V> Vertex3d for Rgba<V> where
V: Vertex3d,
[src]
impl<V> Vertex3d for Rgba<V> where
V: Vertex3d,