Skip to main content

IntoSections

Trait IntoSections 

Source
pub trait IntoSections {
    type Iter: Iterator<Item = Section>;

    // Required method
    fn into_sections(self) -> Self::Iter;
}
Expand description

Converts different types into an Iterator of sections so they can be passed into MenuBuilder::route

Required Associated Types§

Source

type Iter: Iterator<Item = Section>

The Iterator over the Section(s).

Required Methods§

Source

fn into_sections(self) -> Self::Iter

Converts self into the Iterator.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoSections for Vec<Section>

Source§

impl<'a> IntoSections for &'a [Section]

Source§

impl<const N: usize> IntoSections for [Section; N]

Implementors§