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
map a function to each vertex in polygon creating a new polygon
impl<T: Hash> Hash for Line<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<T: Copy> Copy for Line<T>
[src]
impl<T: Eq> Eq for Line<T>
[src]
impl<T: PartialEq> PartialEq for Line<T>
[src]
fn eq(&self, __arg_0: &Line<T>) -> bool
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
This method tests for !=
.
impl<T: Debug> Debug for Line<T>
[src]
impl<T: Clone> Clone for Line<T>
[src]
fn clone(&self) -> Line<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more