Struct nobject_rs::FaceElement
source · pub struct FaceElement {
pub vertex_index: i32,
pub texture_index: Option<i32>,
pub normal_index: Option<i32>,
}
Expand description
Holds the vertex/texture/normal indicies for a part of a face.
Fields§
§vertex_index: i32
Vertex index. Note that these START at 1, NOT 0.
texture_index: Option<i32>
Optional texture index. Note that these START at 1, NOT 0.
normal_index: Option<i32>
Optional normal index. Note that these START at 1, NOT 0.
Implementations§
Trait Implementations§
source§impl Clone for FaceElement
impl Clone for FaceElement
source§fn clone(&self) -> FaceElement
fn clone(&self) -> FaceElement
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 Debug for FaceElement
impl Debug for FaceElement
source§impl Default for FaceElement
impl Default for FaceElement
source§fn default() -> FaceElement
fn default() -> FaceElement
Returns the “default value” for a type. Read more
source§impl From<FaceElement> for (i32, Option<i32>, Option<i32>)
impl From<FaceElement> for (i32, Option<i32>, Option<i32>)
source§fn from(original: FaceElement) -> Self
fn from(original: FaceElement) -> Self
Converts to this type from the input type.
source§impl PartialEq for FaceElement
impl PartialEq for FaceElement
source§fn eq(&self, other: &FaceElement) -> bool
fn eq(&self, other: &FaceElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FaceElement
impl StructuralPartialEq for FaceElement
Auto Trait Implementations§
impl Freeze for FaceElement
impl RefUnwindSafe for FaceElement
impl Send for FaceElement
impl Sync for FaceElement
impl Unpin for FaceElement
impl UnwindSafe for FaceElement
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