Skip to main content

Iterator

Trait Iterator 

Source
pub unsafe trait Iterator: Iterator { }
Expand description

This trait is empty declaration of ::core::iter::Iterator to be used with newer_type::implement.

§Example

#[implement(newer_type_std::iter::Iterator)]
struct MyStruct {
    slot: std::vec::IntoIter<u8>
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§