Struct coord2d::coords::Coord [−][src]
Fields
x: f64
y: f64
Implementations
impl Coord
[src]
pub fn to_vec(coord: Coord) -> Vec<f64>
[src]
pub fn to_tuple(coord: Coord) -> (f64, f64)
[src]
pub fn split(coord: Coord) -> (f64, f64)
[src]
Trait Implementations
impl Add<Coord> for Coord
[src]
type Output = Coord
The resulting type after applying the +
operator.
fn add(self: Coord, rhs: Coord) -> Coord
[src]
impl Clone for Coord
[src]
impl Copy for Coord
[src]
impl Debug for Coord
[src]
impl Div<Coord> for Coord
[src]
type Output = Coord
The resulting type after applying the /
operator.
fn div(self: Coord, rhs: Coord) -> Coord
[src]
impl Mul<Coord> for Coord
[src]
type Output = Coord
The resulting type after applying the *
operator.
fn mul(self: Coord, rhs: Coord) -> Coord
[src]
impl Sub<Coord> for Coord
[src]
Auto Trait Implementations
impl RefUnwindSafe for Coord
impl Send for Coord
impl Sync for Coord
impl Unpin for Coord
impl UnwindSafe for Coord
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,