Trait ExtendFloatingPointTypeNew

Source
pub trait ExtendFloatingPointTypeNew {
    type FloatType;

    // Required methods
    fn new(unrestricted: Option<Unrestricted>, ty: Self::FloatType) -> Self;
    fn new_unrestricted() -> Self;
    fn new_restricted() -> Self;
}
Expand description

Extension methods for creating floating point types

Required Associated Types§

Required Methods§

Source

fn new(unrestricted: Option<Unrestricted>, ty: Self::FloatType) -> Self

Source

fn new_unrestricted() -> Self

Source

fn new_restricted() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExtendFloatingPointTypeNew for DoubleType

Source§

type FloatType = Double

Source§

fn new(unrestricted: Option<Unrestricted>, ty: Self::FloatType) -> Self

Source§

fn new_unrestricted() -> Self

Source§

fn new_restricted() -> Self

Source§

impl ExtendFloatingPointTypeNew for FloatType

Source§

type FloatType = Float

Source§

fn new(unrestricted: Option<Unrestricted>, ty: Self::FloatType) -> Self

Source§

fn new_unrestricted() -> Self

Source§

fn new_restricted() -> Self

Implementors§