Trait lexical_util::num::AsCast
source · pub trait AsCast: AsPrimitive {
// Required method
fn as_cast<N: AsPrimitive>(n: N) -> Self;
}
Expand description
An interface for casting between machine scalars.
Required Methods§
sourcefn 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.
Object Safety§
This trait is not object safe.