Skip to main content

CastTo

Trait CastTo 

Source
pub trait CastTo: Copy {
    // Provided method
    fn cast_to<U>(self) -> U
       where U: CastFrom<Self> { ... }
}
Expand description

Helper trait for generic casting to another SIMD scalar type.

Provided Methods§

Source

fn cast_to<U>(self) -> U
where U: CastFrom<Self>,

Cast self to type U.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> CastTo for T
where T: Copy,