Struct nannou_mesh::vertex::WithTexCoords
source · pub struct WithTexCoords<V, T = Point2> {
pub vertex: V,
pub tex_coords: T,
}
Expand description
A vertex with some specified texture coordinates.
Fields§
§vertex: V
§tex_coords: T
Trait Implementations§
source§impl<V: Clone, T: Clone> Clone for WithTexCoords<V, T>
impl<V: Clone, T: Clone> Clone for WithTexCoords<V, T>
source§fn clone(&self) -> WithTexCoords<V, T>
fn clone(&self) -> WithTexCoords<V, T>
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<V: Default, T: Default> Default for WithTexCoords<V, T>
impl<V: Default, T: Default> Default for WithTexCoords<V, T>
source§fn default() -> WithTexCoords<V, T>
fn default() -> WithTexCoords<V, T>
Returns the “default value” for a type. Read more
source§impl<V, T> Deref for WithTexCoords<V, T>
impl<V, T> Deref for WithTexCoords<V, T>
source§impl<V, T> DerefMut for WithTexCoords<V, T>
impl<V, T> DerefMut for WithTexCoords<V, T>
source§impl<'de, V, T> Deserialize<'de> for WithTexCoords<V, T>where
V: Deserialize<'de>,
T: Deserialize<'de>,
impl<'de, V, T> Deserialize<'de> for WithTexCoords<V, T>where
V: Deserialize<'de>,
T: Deserialize<'de>,
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<V: PartialEq, T: PartialEq> PartialEq for WithTexCoords<V, T>
impl<V: PartialEq, T: PartialEq> PartialEq for WithTexCoords<V, T>
source§fn eq(&self, other: &WithTexCoords<V, T>) -> bool
fn eq(&self, other: &WithTexCoords<V, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>>where
M: PushVertex<V>,
impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: WithTexCoords<V, T>)
fn push_vertex(&mut self, v: WithTexCoords<V, T>)
Push the given vertex onto the mesh. Read more
source§impl<V, T> Serialize for WithTexCoords<V, T>
impl<V, T> Serialize for WithTexCoords<V, T>
source§impl<V, T> Vertex for WithTexCoords<V, T>
impl<V, T> Vertex for WithTexCoords<V, T>
source§impl<V, T> Vertex2d for WithTexCoords<V, T>
impl<V, T> Vertex2d for WithTexCoords<V, T>
source§impl<V, T> Vertex3d for WithTexCoords<V, T>
impl<V, T> Vertex3d for WithTexCoords<V, T>
impl<V: Copy, T: Copy> Copy for WithTexCoords<V, T>
impl<V, T> StructuralPartialEq for WithTexCoords<V, T>
Auto Trait Implementations§
impl<V, T> RefUnwindSafe for WithTexCoords<V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, T> Send for WithTexCoords<V, T>
impl<V, T> Sync for WithTexCoords<V, T>
impl<V, T> Unpin for WithTexCoords<V, T>
impl<V, T> UnwindSafe for WithTexCoords<V, T>where
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds
error is returned which contains the unclamped color. Read more