Skip to main content

VectorCommon

Trait VectorCommon 

Source
pub trait VectorCommon: Sized + Debug {
    type T: Scalar;
    type C: Context;
    type Inner;

    // Required method
    fn inner(&self) -> &Self::Inner;
}
Expand description

Common interface for vector-like types, providing access to scalar type, context, and inner representation.

Required Associated Types§

Required Methods§

Source

fn inner(&self) -> &Self::Inner

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<V> VectorCommon for &V
where V: VectorCommon,

Source§

type T = <V as VectorCommon>::T

Source§

type C = <V as VectorCommon>::C

Source§

type Inner = <V as VectorCommon>::Inner

Source§

fn inner(&self) -> &Self::Inner

Source§

impl<V> VectorCommon for &mut V
where V: VectorCommon,

Source§

type T = <V as VectorCommon>::T

Source§

type C = <V as VectorCommon>::C

Source§

type Inner = <V as VectorCommon>::Inner

Source§

fn inner(&self) -> &Self::Inner

Implementors§