Skip to main content

ConstIntoIterator

Trait ConstIntoIterator 

Source
pub trait ConstIntoIterator {
    type Item;
    type IntoIter: Iterator<Item = Self::Item>;

    // Required method
    fn const_into_iter(self) -> Self::IntoIter;
}

Required Associated Types§

Source

type Item

Source

type IntoIter: Iterator<Item = Self::Item>

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<Type: Target> ConstIntoIterator for Range<Type>
where usize: TryFrom<Type>, <usize as TryFrom<Type>>::Error: Destruct,

Source§

type Item = Type

Source§

type IntoIter = Iterable<Type>

Source§

fn const_into_iter(self) -> Self::IntoIter

Source§

impl<Type: Target> ConstIntoIterator for RangeFrom<Type>
where usize: TryFrom<Type>, <usize as TryFrom<Type>>::Error: Destruct,

Source§

type Item = Type

Source§

type IntoIter = Iterable<Type>

Source§

fn const_into_iter(self) -> Self::IntoIter

Source§

impl<Type: Target> ConstIntoIterator for RangeInclusive<Type>
where usize: TryFrom<Type>, <usize as TryFrom<Type>>::Error: Destruct,

Source§

type Item = Type

Source§

type IntoIter = Iterable<Type>

Source§

fn const_into_iter(self) -> Self::IntoIter

Implementors§