Struct truck_rendimpl::polymesh::StandardVertex
source · [−]Expand description
Index vertex of a face of the polygon mesh
Fields
pos: usizeindex of vertex’s position
uv: Option<usize>index of vertex’s texture coordinate
nor: Option<usize>index of vertex’s normal
Trait Implementations
sourceimpl Clone for StandardVertex
impl Clone for StandardVertex
sourcefn clone(&self) -> StandardVertex
fn clone(&self) -> StandardVertex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StandardVertex
impl Debug for StandardVertex
sourceimpl<'de> Deserialize<'de> for StandardVertex
impl<'de> Deserialize<'de> for StandardVertex
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<StandardVertex, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StandardVertex, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'_> From<&'_ StandardVertex> for StandardVertex
impl<'_> From<&'_ StandardVertex> for StandardVertex
sourcefn from(v: &StandardVertex) -> StandardVertex
fn from(v: &StandardVertex) -> StandardVertex
Converts to this type from the input type.
sourceimpl<'_> From<&'_ usize> for StandardVertex
impl<'_> From<&'_ usize> for StandardVertex
sourcefn from(v: &usize) -> StandardVertex
fn from(v: &usize) -> StandardVertex
Converts to this type from the input type.
sourceimpl From<usize> for StandardVertex
impl From<usize> for StandardVertex
sourcefn from(idx: usize) -> StandardVertex
fn from(idx: usize) -> StandardVertex
Converts to this type from the input type.
sourceimpl Hash for StandardVertex
impl Hash for StandardVertex
sourceimpl PartialEq<StandardVertex> for StandardVertex
impl PartialEq<StandardVertex> for StandardVertex
sourcefn eq(&self, other: &StandardVertex) -> bool
fn eq(&self, other: &StandardVertex) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StandardVertex) -> bool
fn ne(&self, other: &StandardVertex) -> bool
This method tests for !=.
sourceimpl Serialize for StandardVertex
impl Serialize for StandardVertex
sourcefn 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 Copy for StandardVertex
impl Eq for StandardVertex
impl StructuralEq for StandardVertex
impl StructuralPartialEq for StandardVertex
Auto Trait Implementations
impl RefUnwindSafe for StandardVertex
impl Send for StandardVertex
impl Sync for StandardVertex
impl Unpin for StandardVertex
impl UnwindSafe for StandardVertex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more