mint

Trait IntoMint

Source
pub trait IntoMint: Into<Self::MintType> {
    type MintType;
}
Expand description

Defines which mint type a given type is associated with. This trait enables converting a type into its mint equivalent without having to name the mint type.

Implementing IntoMint on a type states that the type is semantically equivalent to the type given in MintType.

All mint types implement IntoMint reflexively, i.e., they implement IntoMint<MintType = Self>.

Required Associated Types§

Source

type MintType

The mint type that this type is associated with.

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.

Implementors§

Source§

impl<T> IntoMint for ColumnMatrix2<T>

Source§

impl<T> IntoMint for ColumnMatrix2x3<T>

Source§

impl<T> IntoMint for ColumnMatrix2x4<T>

Source§

impl<T> IntoMint for ColumnMatrix3<T>

Source§

impl<T> IntoMint for ColumnMatrix3x2<T>

Source§

impl<T> IntoMint for ColumnMatrix3x4<T>

Source§

impl<T> IntoMint for ColumnMatrix4<T>

Source§

impl<T> IntoMint for ColumnMatrix4x2<T>

Source§

impl<T> IntoMint for ColumnMatrix4x3<T>

Source§

impl<T> IntoMint for Point2<T>

Source§

impl<T> IntoMint for Point3<T>

Source§

impl<T> IntoMint for Quaternion<T>

Source§

impl<T> IntoMint for RowMatrix2<T>

Source§

impl<T> IntoMint for RowMatrix2x3<T>

Source§

impl<T> IntoMint for RowMatrix2x4<T>

Source§

impl<T> IntoMint for RowMatrix3<T>

Source§

impl<T> IntoMint for RowMatrix3x2<T>

Source§

impl<T> IntoMint for RowMatrix3x4<T>

Source§

impl<T> IntoMint for RowMatrix4<T>

Source§

impl<T> IntoMint for RowMatrix4x2<T>

Source§

impl<T> IntoMint for RowMatrix4x3<T>

Source§

impl<T> IntoMint for Vector2<T>

Source§

impl<T> IntoMint for Vector3<T>

Source§

impl<T> IntoMint for Vector4<T>