Trait konst::iter::Step

source ·
pub trait Step: HasTypeWitness<StepWitness<Self>> + Copy {
    const MIN_VAL: Self;
    const MAX_VAL: Self;
}
Available on crate feature iter only.
Expand description

Trait for all the types that can be iterated over with ranges.

This trait is sealed and can only be implemented by konst

Required Associated Constants§

source

const MIN_VAL: Self

The minimum value of the type.

source

const MAX_VAL: Self

The maximum value of the type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Step for char

source§

const MIN_VAL: char = '\0'

source§

const MAX_VAL: char = '\u{10ffff}'

source§

impl Step for i8

source§

const MIN_VAL: i8 = -128i8

source§

const MAX_VAL: i8 = 127i8

source§

impl Step for i16

source§

const MIN_VAL: i16 = -32_768i16

source§

const MAX_VAL: i16 = 32_767i16

source§

impl Step for i32

source§

const MIN_VAL: i32 = -2_147_483_648i32

source§

const MAX_VAL: i32 = 2_147_483_647i32

source§

impl Step for i64

source§

const MIN_VAL: i64 = -9_223_372_036_854_775_808i64

source§

const MAX_VAL: i64 = 9_223_372_036_854_775_807i64

source§

impl Step for i128

source§

const MIN_VAL: i128 = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

source§

const MAX_VAL: i128 = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

source§

impl Step for isize

source§

const MIN_VAL: isize = -2_147_483_648isize

source§

const MAX_VAL: isize = 2_147_483_647isize

source§

impl Step for u8

source§

const MIN_VAL: u8 = 0u8

source§

const MAX_VAL: u8 = 255u8

source§

impl Step for u16

source§

const MIN_VAL: u16 = 0u16

source§

const MAX_VAL: u16 = 65_535u16

source§

impl Step for u32

source§

const MIN_VAL: u32 = 0u32

source§

const MAX_VAL: u32 = 4_294_967_295u32

source§

impl Step for u64

source§

const MIN_VAL: u64 = 0u64

source§

const MAX_VAL: u64 = 18_446_744_073_709_551_615u64

source§

impl Step for u128

source§

const MIN_VAL: u128 = 0u128

source§

const MAX_VAL: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

impl Step for usize

source§

const MIN_VAL: usize = 0usize

source§

const MAX_VAL: usize = 4_294_967_295usize

Implementors§