Trait mozjs::conversions::As

source ·
trait As<O>: Copy {
    // Required method
    fn cast(self) -> O;
}

Required Methods§

source

fn cast(self) -> O

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl As<f64> for i8

source§

fn cast(self) -> f64

source§

impl As<f64> for i16

source§

fn cast(self) -> f64

source§

impl As<f64> for i32

source§

fn cast(self) -> f64

source§

impl As<f64> for i64

source§

fn cast(self) -> f64

source§

impl As<f64> for u8

source§

fn cast(self) -> f64

source§

impl As<f64> for u16

source§

fn cast(self) -> f64

source§

impl As<f64> for u32

source§

fn cast(self) -> f64

source§

impl As<f64> for u64

source§

fn cast(self) -> f64

source§

impl As<i8> for f64

source§

fn cast(self) -> i8

source§

impl As<i8> for i32

source§

fn cast(self) -> i8

source§

impl As<i16> for f64

source§

fn cast(self) -> i16

source§

impl As<i16> for i32

source§

fn cast(self) -> i16

source§

impl As<i32> for f64

source§

fn cast(self) -> i32

source§

impl As<i32> for i32

source§

fn cast(self) -> i32

source§

impl As<i64> for f64

source§

fn cast(self) -> i64

source§

impl As<i64> for i64

source§

fn cast(self) -> i64

source§

impl As<u8> for f64

source§

fn cast(self) -> u8

source§

impl As<u8> for i32

source§

fn cast(self) -> u8

source§

impl As<u16> for f64

source§

fn cast(self) -> u16

source§

impl As<u16> for u16

source§

fn cast(self) -> u16

source§

impl As<u32> for f64

source§

fn cast(self) -> u32

source§

impl As<u32> for u32

source§

fn cast(self) -> u32

source§

impl As<u64> for f64

source§

fn cast(self) -> u64

source§

impl As<u64> for u64

source§

fn cast(self) -> u64

Implementors§