Trait Desc

Source
pub trait Desc {
    type Props: ?Sized;
    type Child: ?Sized;
    type Children: Clone;

    // Required method
    fn stage<'a>(
        props: &Self::Props,
        outer_area: AbsRect,
        limits: AbsLimits,
        children: &Self::Children,
        id: Weak<SourceID>,
        renderable: Option<Rc<dyn Renderable>>,
        window: &mut WindowState,
    ) -> Box<dyn Staged + 'a>;
}

Required Associated Types§

Required Methods§

Source

fn stage<'a>( props: &Self::Props, outer_area: AbsRect, limits: AbsLimits, children: &Self::Children, id: Weak<SourceID>, renderable: Option<Rc<dyn Renderable>>, window: &mut WindowState, ) -> Box<dyn Staged + 'a>

Resolves a pending layout into a resolved node, which contains a pointer to the R-tree

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Desc for dyn Empty

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Sized

Source§

impl Desc for dyn Prop

Source§

impl Desc for dyn Prop

Source§

type Props = dyn Prop

Source§

type Child = dyn Empty

Source§

type Children = Box<dyn Layout<<dyn Prop as Desc>::Child>>