logo
pub trait X2Interface {
    type Scalar: ScalarInterface;

    fn _0(&self) -> Self::Scalar;
    fn _1(&self) -> Self::Scalar;

    fn x(&self) -> Self::Scalar { ... }
    fn y(&self) -> Self::Scalar { ... }
    fn clone_as_tuple(&self) -> (Self::Scalar, Self::Scalar) { ... }
    fn clone_as_array(&self) -> [Self::Scalar; 2] { ... }
    fn clone_as_canonical(&self) -> X2<Self::Scalar> { ... }
}
Expand description

Nominal interface of vector X2.

Required Associated Types

Type of element.

Required Methods

First element.

Second element.

Provided Methods

First element.

Second element.

Clone as tuple.

Clone as array.

Clone as canonical.

Implementations on Foreign Types

Implementors