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]
impl<T> Line<T>
Trait Implementations
impl<T: Clone, U> MapVertex<T, U> for Line<T>
[src]
impl<T: Clone, U> MapVertex<T, U> for Line<T>
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]
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: Clone> Clone for Line<T>
[src]
impl<T: Clone> Clone for Line<T>
fn clone(&self) -> 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[src]
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]
impl<T: Debug> Debug for Line<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Line<T>
[src]
impl<T: PartialEq> PartialEq for Line<T>
fn eq(&self, other: &Line<T>) -> bool
[src]
fn eq(&self, other: &Line<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Line<T>) -> bool
[src]
fn ne(&self, other: &Line<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Line<T>
[src]
impl<T: Eq> Eq for Line<T>
impl<T: Copy> Copy for Line<T>
[src]
impl<T: Copy> Copy for Line<T>
impl<T: Hash> Hash for Line<T>
[src]
impl<T: Hash> Hash for Line<T>