[][src]Trait embedded_layout::layout::ViewChainElement

pub trait ViewChainElement: View {
    const IS_TERMINATOR: bool;

    fn view_count() -> usize;
fn for_each(&mut self, op: &mut impl FnMut(&mut dyn View)); }

Implementation detail necessary to store multiple different types of Views in a ViewGroup

Associated Constants

const IS_TERMINATOR: bool

true if this chain element marks the end of a chain

Loading content...

Required methods

fn view_count() -> usize

Return the number of Views linked to this chain element

fn for_each(&mut self, op: &mut impl FnMut(&mut dyn View))

Run an operation on each of the Views linked to this chain element

Loading content...

Implementors

impl ViewChainElement for ChainTerminator[src]

impl<V: View, VC: ViewChainElement> ViewChainElement for ViewLink<V, VC>[src]

Loading content...