Trait webidl_utils::extend::ExtendIntegerTypeNew

source ·
pub trait ExtendIntegerTypeNew {
    type IntegerType;

    // Required methods
    fn new(unsigned: Option<Unsigned>, ty: Self::IntegerType) -> Self;
    fn new_signed() -> Self;
    fn new_unsigned() -> Self;
}
Expand description

Extension methods for creating integer types

Required Associated Types§

Required Methods§

source

fn new(unsigned: Option<Unsigned>, ty: Self::IntegerType) -> Self

source

fn new_signed() -> Self

source

fn new_unsigned() -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ExtendIntegerTypeNew for LongLongType

§

type IntegerType = (Long, Long)

source§

fn new(unsigned: Option<Unsigned>, long_long: Self::IntegerType) -> Self

source§

fn new_signed() -> Self

source§

fn new_unsigned() -> Self

source§

impl ExtendIntegerTypeNew for LongType

§

type IntegerType = Long

source§

fn new(unsigned: Option<Unsigned>, long: Self::IntegerType) -> Self

source§

fn new_signed() -> Self

source§

fn new_unsigned() -> Self

source§

impl ExtendIntegerTypeNew for ShortType

§

type IntegerType = Short

source§

fn new(unsigned: Option<Unsigned>, short: Self::IntegerType) -> Self

source§

fn new_signed() -> Self

source§

fn new_unsigned() -> Self

Implementors§