Trait lexical_util::num::AsCast

source ·
pub trait AsCast: AsPrimitive {
    fn as_cast<N: AsPrimitive>(n: N) -> Self;
}
Expand description

An interface for casting between machine scalars.

Required Methods§

Creates a number from another value that can be converted into a primitive via the AsPrimitive trait.

Implementations on Foreign Types§

Implementors§