Trait IntoAtoms

Source
pub trait IntoAtoms<'a> {
    // Required method
    fn collect(self, atoms: &mut Atoms<'a>);

    // Provided method
    fn into_atoms(self) -> Atoms<'a>
       where Self: Sized { ... }
}
Expand description

Trait for turning a tuple of Atoms into Atoms.

Required Methods§

Source

fn collect(self, atoms: &mut Atoms<'a>)

Provided Methods§

Source

fn into_atoms(self) -> Atoms<'a>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<'a> IntoAtoms<'a> for ()

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Source§

impl<'a, T0, T1> IntoAtoms<'a> for (T0, T1)
where T0: IntoAtoms<'a>, T1: IntoAtoms<'a>,

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Source§

impl<'a, T0, T1, T2> IntoAtoms<'a> for (T0, T1, T2)
where T0: IntoAtoms<'a>, T1: IntoAtoms<'a>, T2: IntoAtoms<'a>,

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Source§

impl<'a, T0, T1, T2, T3> IntoAtoms<'a> for (T0, T1, T2, T3)
where T0: IntoAtoms<'a>, T1: IntoAtoms<'a>, T2: IntoAtoms<'a>, T3: IntoAtoms<'a>,

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Source§

impl<'a, T0, T1, T2, T3, T4> IntoAtoms<'a> for (T0, T1, T2, T3, T4)
where T0: IntoAtoms<'a>, T1: IntoAtoms<'a>, T2: IntoAtoms<'a>, T3: IntoAtoms<'a>, T4: IntoAtoms<'a>,

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Source§

impl<'a, T0, T1, T2, T3, T4, T5> IntoAtoms<'a> for (T0, T1, T2, T3, T4, T5)
where T0: IntoAtoms<'a>, T1: IntoAtoms<'a>, T2: IntoAtoms<'a>, T3: IntoAtoms<'a>, T4: IntoAtoms<'a>, T5: IntoAtoms<'a>,

Source§

fn collect(self, _atoms: &mut Atoms<'a>)

Implementors§

Source§

impl<'a> IntoAtoms<'a> for Atoms<'a>

Source§

impl<'a, T> IntoAtoms<'a> for T
where T: Into<Atom<'a>>,

Helper trait to convert a tuple of atoms into Atoms.

use egui::{Atoms, Image, IntoAtoms, RichText};
let atoms: Atoms = (
    "Some text",
    RichText::new("Some RichText"),
    Image::new("some_image_url"),
).into_atoms();