Struct evegfx::graphics::Vertex2D [−][src]
Represents 2D coordinates in a specific coordinate system.
Most functions that expect vertices as arguments are generic over all
types that can convert to Vertex2D
. When it's obvious from context
that such an argument is a vertex, it's conventional to represent it as
a bare tuple of X and Y coordinates, (x, y)
, to avoid the visual noise
of explicitly calling the Vertex2D
constructor function.
Implementations
impl<S: CoordinateSystem> Vertex2D<S>
[src]
Trait Implementations
impl<S: Clone + CoordinateSystem> Clone for Vertex2D<S> where
S::Dim: Clone,
S::Dim: Clone,
[src]
S::Dim: Clone,
S::Dim: Clone,
fn clone(&self) -> Vertex2D<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy + CoordinateSystem> Copy for Vertex2D<S> where
S::Dim: Copy,
S::Dim: Copy,
[src]
S::Dim: Copy,
S::Dim: Copy,
impl<S: Debug + CoordinateSystem> Debug for Vertex2D<S> where
S::Dim: Debug,
S::Dim: Debug,
[src]
S::Dim: Debug,
S::Dim: Debug,
impl<S: Eq + CoordinateSystem> Eq for Vertex2D<S> where
S::Dim: Eq,
S::Dim: Eq,
[src]
S::Dim: Eq,
S::Dim: Eq,
impl<S: CoordinateSystem> From<(<S as CoordinateSystem>::Dim, <S as CoordinateSystem>::Dim)> for Vertex2D<S>
[src]
impl<S: PartialEq + CoordinateSystem> PartialEq<Vertex2D<S>> for Vertex2D<S> where
S::Dim: PartialEq,
S::Dim: PartialEq,
[src]
S::Dim: PartialEq,
S::Dim: PartialEq,
impl<S: CoordinateSystem> StructuralEq for Vertex2D<S>
[src]
impl<S: CoordinateSystem> StructuralPartialEq for Vertex2D<S>
[src]
Auto Trait Implementations
impl<S> Send for Vertex2D<S> where
<S as CoordinateSystem>::Dim: Send,
[src]
<S as CoordinateSystem>::Dim: Send,
impl<S> Sync for Vertex2D<S> where
<S as CoordinateSystem>::Dim: Sync,
[src]
<S as CoordinateSystem>::Dim: Sync,
impl<S> Unpin for Vertex2D<S> where
<S as CoordinateSystem>::Dim: Unpin,
[src]
<S as CoordinateSystem>::Dim: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,