Struct nannou::mesh::vertex::WithTexCoords
source · pub struct WithTexCoords<V, T = Vec2> {
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, T> Clone for WithTexCoords<V, T>
impl<V, T> 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, T> Debug for WithTexCoords<V, T>
impl<V, T> Debug for WithTexCoords<V, T>
source§impl<V, T> Default for WithTexCoords<V, T>
impl<V, T> 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<WithTexCoords<V, T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<WithTexCoords<V, T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A, V, T> From<(A, T)> for WithTexCoords<V, T>where
A: Into<V>,
impl<A, V, T> From<(A, T)> for WithTexCoords<V, T>where
A: Into<V>,
source§fn from(_: (A, T)) -> WithTexCoords<V, T>
fn from(_: (A, T)) -> WithTexCoords<V, T>
Converts to this type from the input type.
source§impl<V, T> PartialEq for WithTexCoords<V, T>
impl<V, T> 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 PushVertex<WithTexCoords<WithColor<Vec3>>> for Mesh
impl PushVertex<WithTexCoords<WithColor<Vec3>>> for Mesh
source§fn push_vertex(&mut self, v: Vertex)
fn push_vertex(&mut self, v: Vertex)
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§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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, T> 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