Trait range_parser::Unit

source ·
pub trait Unit {
    // Required method
    fn unit() -> Self;
}
Expand description

A trait for types that have a unit value.

E.g. 1 for integers, 1.0 for floats, etc.

Required Methods§

source

fn unit() -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Unit for f32

source§

fn unit() -> Self

source§

impl Unit for f64

source§

fn unit() -> Self

source§

impl Unit for i8

source§

fn unit() -> Self

source§

impl Unit for i16

source§

fn unit() -> Self

source§

impl Unit for i32

source§

fn unit() -> Self

source§

impl Unit for i64

source§

fn unit() -> Self

source§

impl Unit for isize

source§

fn unit() -> Self

source§

impl Unit for u8

source§

fn unit() -> Self

source§

impl Unit for u16

source§

fn unit() -> Self

source§

impl Unit for u32

source§

fn unit() -> Self

source§

impl Unit for u64

source§

fn unit() -> Self

source§

impl Unit for usize

source§

fn unit() -> Self

Implementors§