Struct nobject_rs::LineElement
source · pub struct LineElement {
pub vertex_index: i32,
pub texture_index: Option<i32>,
}
Expand description
Contains the indicies for a line element.
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.
Implementations§
source§impl LineElement
impl LineElement
Trait Implementations§
source§impl Clone for LineElement
impl Clone for LineElement
source§fn clone(&self) -> LineElement
fn clone(&self) -> LineElement
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 LineElement
impl Debug for LineElement
source§impl Default for LineElement
impl Default for LineElement
source§fn default() -> LineElement
fn default() -> LineElement
Returns the “default value” for a type. Read more
source§impl From<LineElement> for (i32, Option<i32>)
impl From<LineElement> for (i32, Option<i32>)
source§fn from(original: LineElement) -> Self
fn from(original: LineElement) -> Self
Converts to this type from the input type.
source§impl PartialEq for LineElement
impl PartialEq for LineElement
source§fn eq(&self, other: &LineElement) -> bool
fn eq(&self, other: &LineElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineElement
impl StructuralPartialEq for LineElement
Auto Trait Implementations§
impl Freeze for LineElement
impl RefUnwindSafe for LineElement
impl Send for LineElement
impl Sync for LineElement
impl Unpin for LineElement
impl UnwindSafe for LineElement
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