Skip to main content

DebugIterator

Trait DebugIterator 

Source
pub trait DebugIterator {
    // Required methods
    fn debug(self) -> IterDebug<Self>
       where Self: Sized;
    fn debug_set(self) -> IterDebug<Self>
       where Self: Sized;
    fn debug_map(self) -> KvIterDebug<Self>
       where Self: Sized;
}
Expand description

Helper trait that lets you .debug() an iterator, like the other combinators.

Automatically implemented for all IntoIterator with Debug-able items.

Required Methods§

Source

fn debug(self) -> IterDebug<Self>
where Self: Sized,

Convert this iterator to a Debug-printable value, printed as a list.

Source

fn debug_set(self) -> IterDebug<Self>
where Self: Sized,

Convert this iterator to a Debug-printable value, printed as a set.

Source

fn debug_map(self) -> KvIterDebug<Self>
where Self: Sized,

Convert this iterator to a Debug-printable value, printed as a map.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> DebugIterator for T
where T: IntoIterator, T::Item: Debug,