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
fn as_cast<N: AsPrimitive>(n: N) -> Self
fn as_cast<N: AsPrimitive>(n: N) -> Self
Creates a number from another value that can be converted into
a primitive via the AsPrimitive
trait.