Trait plot_interface::X2CanonicalInterface
source · [−]pub trait X2CanonicalInterface: X2BasicInterface {
Show 17 methods
fn _0_ref(&self) -> &Self::Scalar;
fn _1_ref(&self) -> &Self::Scalar;
fn _0_mut(&mut self) -> &mut Self::Scalar;
fn _1_mut(&mut self) -> &mut Self::Scalar;
fn as_canonical(&self) -> &X2<Self::Scalar>;
fn as_canonical_mut(&mut self) -> &mut X2<Self::Scalar>;
fn assign<Src>(&mut self, src: Src)
where
Src: X2BasicInterface<Scalar = Self::Scalar>,
{ ... }
fn x_ref(&self) -> &Self::Scalar { ... }
fn y_ref(&self) -> &Self::Scalar { ... }
fn x_mut(&mut self) -> &mut Self::Scalar { ... }
fn y_mut(&mut self) -> &mut Self::Scalar { ... }
fn as_tuple(&self) -> &(Self::Scalar, Self::Scalar) { ... }
fn as_array(&self) -> &[Self::Scalar; 2] { ... }
fn as_slice(&self) -> &[Self::Scalar] { ... }
fn as_tuple_mut(&mut self) -> &mut (Self::Scalar, Self::Scalar) { ... }
fn as_array_mut(&mut self) -> &mut [Self::Scalar; 2] { ... }
fn as_slice_mut(&mut self) -> &mut [Self::Scalar] { ... }
}
Expand description
Interface of vector X2 for structures with the canonical layout.
Required Methods
fn as_canonical(&self) -> &X2<Self::Scalar>
fn as_canonical(&self) -> &X2<Self::Scalar>
Canonical representation of the vector.
fn as_canonical_mut(&mut self) -> &mut X2<Self::Scalar>
fn as_canonical_mut(&mut self) -> &mut X2<Self::Scalar>
Mutable canonical representation of the vector.
Provided Methods
fn assign<Src>(&mut self, src: Src) where
Src: X2BasicInterface<Scalar = Self::Scalar>,
fn assign<Src>(&mut self, src: Src) where
Src: X2BasicInterface<Scalar = Self::Scalar>,
Assign value.
fn as_tuple_mut(&mut self) -> &mut (Self::Scalar, Self::Scalar)
fn as_tuple_mut(&mut self) -> &mut (Self::Scalar, Self::Scalar)
Interpret as mutable tuple.
fn as_array_mut(&mut self) -> &mut [Self::Scalar; 2]
fn as_array_mut(&mut self) -> &mut [Self::Scalar; 2]
Interpret as mutable array.
fn as_slice_mut(&mut self) -> &mut [Self::Scalar]
fn as_slice_mut(&mut self) -> &mut [Self::Scalar]
Interpret as mutable slice.