Trait Class

Source
pub trait Class<B> {
    // Required method
    fn apply(self, b: &mut B);
}
Expand description

Something that can overwrite a value, typically a node bundle.

Required Methods§

Source

fn apply(self, b: &mut B)

Implementations on Foreign Types§

Source§

impl Class<ImageBundle> for ImageBundle

Source§

fn apply(self, b: &mut ImageBundle)

Source§

impl Class<NodeBundle> for NodeBundle

Source§

fn apply(self, b: &mut NodeBundle)

Source§

impl<F1, F2, B> Class<B> for (F1, F2)
where F1: Class<B>, F2: Class<B>,

Source§

fn apply(self, b: &mut B)

Source§

impl<F1, F2, F3, B> Class<B> for (F1, F2, F3)
where F1: Class<B>, F2: Class<B>, F3: Class<B>,

Source§

fn apply(self, b: &mut B)

Source§

impl<F1, F2, F3, F4, B> Class<B> for (F1, F2, F3, F4)
where F1: Class<B>, F2: Class<B>, F3: Class<B>, F4: Class<B>,

Source§

fn apply(self, b: &mut B)

Source§

impl<T> Class<T> for ()

Source§

fn apply(self, _b: &mut T)

Implementors§

Source§

impl<F, B> Class<B> for F
where F: FnOnce(&mut B),