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§
Sourcefn 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>
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.