Skip to main content

AsTypeInner

Trait AsTypeInner 

Source
pub trait AsTypeInner<U, D>
where U: Element, D: Dimension,
{ // Required method fn astype_inner(&self) -> Result<Array<U, D>, FerrayError>; }
Expand description

Internal trait that performs the actual casting. Implemented for specific (T, U) pairs where T: PromoteTo<U> or where unsafe casting is valid.

Required Methods§

Source

fn astype_inner(&self) -> Result<Array<U, D>, FerrayError>

Perform the cast.

Implementors§

Source§

impl<T, U, D> AsTypeInner<U, D> for Array<T, D>
where T: Element + PromoteTo<U>, U: Element, D: Dimension,

Available on non-crate feature no_std only.

Blanket implementation: any T that can PromoteTo can astype.