pub trait X2CanonicalInterface: Sized + X2BasicInterface {
Show 17 methods
// Required 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>;
// Provided methods
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§
Sourcefn as_canonical(&self) -> &X2<Self::Scalar>
fn as_canonical(&self) -> &X2<Self::Scalar>
Canonical representation of the vector.
Sourcefn 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§
Sourcefn 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.
Sourcefn 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.
Sourcefn as_array_mut(&mut self) -> &mut [Self::Scalar; 2]
fn as_array_mut(&mut self) -> &mut [Self::Scalar; 2]
Interpret as mutable array.
Sourcefn as_slice_mut(&mut self) -> &mut [Self::Scalar]
fn as_slice_mut(&mut self) -> &mut [Self::Scalar]
Interpret as mutable slice.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.