# Trait flechasdb::numbers::FromAs

source ·

    pub trait FromAs<T> {
        // Required method
        fn from_as(t: T) -> Self;
    }

Expand description

Represents a number converted from another primitive type.

## Required Methods§

source

#### fn from_as(t: T) -> Self

Returns the converted number.

## Implementations on Foreign Types§

source§

### impl FromAs<usize> for f32

source§

#### fn from_as(t: usize) -> f32

source§

### impl FromAs<usize> for f64

source§

#### fn from_as(t: usize) -> f64

## Implementors§