Skip to main content

Target

Trait Target 

Source
pub trait Target:
    Copy
    + AddAssign
    + SubAssign
    + PartialOrd
    + Sub<Output = Self>
    + Destruct
where usize: TryFrom<Self>, <usize as TryFrom<Self>>::Error: Destruct,
{ const ONE: Self; const MAX: Self; // Provided method fn hint(self, start: Self) -> (usize, Option<usize>) { ... } }

Required Associated Constants§

Source

const ONE: Self

Source

const MAX: Self

Provided Methods§

Source

fn hint(self, start: Self) -> (usize, Option<usize>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Target for i8

Source§

const ONE: Self = 1i8

Source§

const MAX: Self = i8::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for i16

Source§

const ONE: Self = 1i16

Source§

const MAX: Self = i16::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for i32

Source§

const ONE: Self = 1i32

Source§

const MAX: Self = i32::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for i64

Source§

const ONE: Self = 1i64

Source§

const MAX: Self = i64::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for i128

Source§

const ONE: Self = 1i128

Source§

const MAX: Self = i128::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for isize

Source§

const ONE: Self = 1isize

Source§

const MAX: Self = isize::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for u8

Source§

const ONE: Self = 1u8

Source§

const MAX: Self = u8::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for u16

Source§

const ONE: Self = 1u16

Source§

const MAX: Self = u16::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for u32

Source§

const ONE: Self = 1u32

Source§

const MAX: Self = u32::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for u64

Source§

const ONE: Self = 1u64

Source§

const MAX: Self = u64::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for u128

Source§

const ONE: Self = 1u128

Source§

const MAX: Self = u128::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Source§

impl Target for usize

Source§

const ONE: Self = 1usize

Source§

const MAX: Self = usize::MAX

Source§

fn hint(self, start: Self) -> (usize, Option<usize>)

Implementors§