Struct ModelVertex
#[non_exhaustive]pub struct ModelVertex {
pub pos: [f32; 3],
pub u: f32,
pub v: f32,
}Expand description
A corner of a baked face (ModelPart.Vertex): in texels in its part’s
frame, and where it falls on the texture, 0 to 1 across it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pos: [f32; 3]The vertex position, in texels.
u: f32Horizontal texture coordinate.
v: f32Vertical texture coordinate.
Implementations§
§impl ModelVertex
impl ModelVertex
Trait Implementations§
§impl Clone for ModelVertex
impl Clone for ModelVertex
§fn clone(&self) -> ModelVertex
fn clone(&self) -> ModelVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelVertex
§impl Debug for ModelVertex
impl Debug for ModelVertex
§impl<'de> Deserialize<'de> for ModelVertex
impl<'de> Deserialize<'de> for ModelVertex
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelVertex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelVertex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for ModelVertex
impl PartialEq for ModelVertex
§impl Serialize for ModelVertex
impl Serialize for ModelVertex
§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
impl StructuralPartialEq for ModelVertex
Auto Trait Implementations§
impl Freeze for ModelVertex
impl RefUnwindSafe for ModelVertex
impl Send for ModelVertex
impl Sync for ModelVertex
impl Unpin for ModelVertex
impl UnsafeUnpin for ModelVertex
impl UnwindSafe for ModelVertex
Blanket Implementations§
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