Struct genmesh::Line
[−]
[src]
pub struct Line<T> { pub x: T, pub y: T, }
Represents a line
Fields
x: T
the first point
y: T
The second point
Methods
impl<T> Line<T>
[src]
Trait Implementations
impl<T: Clone, U> MapVertex<T, U> for Line<T>
[src]
type Output = Line<U>
Output
should be a a container of the same shape of the type It's internal values should reflect any transformation the map did. Read more
fn map_vertex<F>(self, map: F) -> Line<U> where
F: FnMut(T) -> U,
[src]
F: FnMut(T) -> U,
map a function to each vertex in polygon creating a new polygon
impl<T: Clone> Clone for Line<T>
[src]
fn clone(&self) -> Line<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Line<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Line<T>
[src]
fn eq(&self, __arg_0: &Line<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Line<T>) -> bool
[src]
This method tests for !=
.