Skip to main content

Iterable

Trait Iterable 

Source
pub trait Iterable:
    Sized
    + Copy
    + 'static {
    const ALL: &'static [Self];

    // Provided method
    fn iter() -> Copied<Iter<'static, Self>> ⓘ { ... }
}
Expand description

An enumeration whose variants can be listed: columns, primary keys and relations.

Generated by the derive macros; ALL is in declaration order.

Required Associated Constants§

Source

const ALL: &'static [Self]

Every variant, in declaration order.

Provided Methods§

Source

fn iter() -> Copied<Iter<'static, Self>> ⓘ

Iterates over the variants in declaration order.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§