#[repr(C)]pub struct Triangle2DF32 {
pub a: [f32; 2],
pub b: [f32; 2],
pub c: [f32; 2],
}Expand description
A 2D triangle: three vertices [x, y]. repr(C), unpadded, so a slice
casts to and from the on-disk fixed-width payload with no copy.
Fields§
§a: [f32; 2]First vertex [x, y].
b: [f32; 2]Second vertex [x, y].
c: [f32; 2]Third vertex [x, y].
Implementations§
Trait Implementations§
Source§impl Clone for Triangle2DF32
impl Clone for Triangle2DF32
Source§fn clone(&self) -> Triangle2DF32
fn clone(&self) -> Triangle2DF32
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 Triangle2DF32
Source§impl Debug for Triangle2DF32
impl Debug for Triangle2DF32
Source§impl PartialEq for Triangle2DF32
impl PartialEq for Triangle2DF32
Source§fn eq(&self, other: &Triangle2DF32) -> bool
fn eq(&self, other: &Triangle2DF32) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Triangle2DF32
Auto Trait Implementations§
impl Freeze for Triangle2DF32
impl RefUnwindSafe for Triangle2DF32
impl Send for Triangle2DF32
impl Sync for Triangle2DF32
impl Unpin for Triangle2DF32
impl UnsafeUnpin for Triangle2DF32
impl UnwindSafe for Triangle2DF32
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more