Struct font::Offset [] [src]

pub struct Offset(pub Number, pub Number);

An offset.

Trait Implementations

impl PartialEq for Offset
[src]

fn eq(&self, __arg_0: &Offset) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Offset) -> bool

This method tests for !=.

impl Default for Offset
[src]

fn default() -> Offset

Returns the "default value" for a type. Read more

impl Debug for Offset
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Offset
[src]

impl Clone for Offset
[src]

fn clone(&self) -> Offset

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

impl From<f32> for Offset
[src]

fn from(z: f32) -> Self

Performs the conversion.

impl Div<f32> for Offset
[src]

type Output = Offset

The resulting type after applying the / operator

fn div(self, other: f32) -> Offset

The method for the / operator

impl DivAssign<f32> for Offset
[src]

fn div_assign(&mut self, other: f32)

The method for the /= operator

impl Mul<f32> for Offset
[src]

type Output = Offset

The resulting type after applying the * operator

fn mul(self, other: f32) -> Offset

The method for the * operator

impl MulAssign<f32> for Offset
[src]

fn mul_assign(&mut self, other: f32)

The method for the *= operator

impl From<i16> for Offset
[src]

fn from(z: i16) -> Self

Performs the conversion.

impl Div<i16> for Offset
[src]

type Output = Offset

The resulting type after applying the / operator

fn div(self, other: i16) -> Offset

The method for the / operator

impl DivAssign<i16> for Offset
[src]

fn div_assign(&mut self, other: i16)

The method for the /= operator

impl Mul<i16> for Offset
[src]

type Output = Offset

The resulting type after applying the * operator

fn mul(self, other: i16) -> Offset

The method for the * operator

impl MulAssign<i16> for Offset
[src]

fn mul_assign(&mut self, other: i16)

The method for the *= operator

impl From<(f32, f32)> for Offset
[src]

fn from((x, y): (f32, f32)) -> Self

Performs the conversion.

impl From<(i16, i16)> for Offset
[src]

fn from((x, y): (i16, i16)) -> Self

Performs the conversion.

impl<T> Add<T> for Offset where T: Into<Offset>
[src]

type Output = Offset

The resulting type after applying the + operator

fn add(self, other: T) -> Offset

The method for the + operator

impl<T> AddAssign<T> for Offset where T: Into<Offset>
[src]

fn add_assign(&mut self, other: T)

The method for the += operator

impl Neg for Offset
[src]

type Output = Offset

The resulting type after applying the - operator

fn neg(self) -> Offset

The method for the unary - operator

impl<T> Sub<T> for Offset where T: Into<Offset>
[src]

type Output = Offset

The resulting type after applying the - operator

fn sub(self, other: T) -> Offset

The method for the - operator

impl<T> SubAssign<T> for Offset where T: Into<Offset>
[src]

fn sub_assign(&mut self, other: T)

The method for the -= operator