Struct frui::prelude::DebugContainer
source · [−]pub struct DebugContainer<W>where
W: Widget,{
pub child: W,
}Fields
child: WImplementations
sourceimpl<W> DebugContainer<W>where
W: Widget,
impl<W> DebugContainer<W>where
W: Widget,
pub fn child(child: W) -> DebugContainer<W>
Trait Implementations
sourceimpl<W> CheapEq for DebugContainer<W>where
W: Widget,
impl<W> CheapEq for DebugContainer<W>where
W: Widget,
sourceconst CHEAP_TO_EQ: bool = false
const CHEAP_TO_EQ: bool = false
This associated type is used to avoid recursive comparisons of the whole
widget subtree (if one of the fields is itself a widget). Read more
fn cheap_eq(&self, other: &DebugContainer<W>) -> bool
sourceimpl<W> SingleChildWidget for DebugContainer<W>where
W: Widget,
impl<W> SingleChildWidget for DebugContainer<W>where
W: Widget,
fn build(
&'w self,
&'w _BuildContext<'w, DebugContainer<W>>
) -> <DebugContainer<W> as WidgetDerive>::Widget<'w>
fn layout(
&self,
ctx: &mut _RenderContext<'_, DebugContainer<W>>,
constraints: Constraints
) -> Size
fn paint(
&self,
ctx: &mut _RenderContext<'_, DebugContainer<W>>,
canvas: &mut CairoRenderContext<'_>,
offset: &Offset
)
sourceimpl<W> Widget for DebugContainer<W>where
W: Widget,
impl<W> Widget for DebugContainer<W>where
W: Widget,
sourcefn unique_type(&self) -> TypeId
fn unique_type(&self) -> TypeId
Implementation should return the same unique TypeId for given structure definition,
even if that structure contains generic parameters. This is used to preserve state
between generic widgets. Read more
fn kind(&'frui self) -> WidgetKind<'frui>
sourceimpl<W> WidgetDerive for DebugContainer<W>where
W: Widget,
impl<W> WidgetDerive for DebugContainer<W>where
W: Widget,
Auto Trait Implementations
impl<W> Immutable for DebugContainer<W>where
W: Immutable,
impl<W> RefUnwindSafe for DebugContainer<W>where
W: RefUnwindSafe,
impl<W> Send for DebugContainer<W>where
W: Send,
impl<W> Sync for DebugContainer<W>where
W: Sync,
impl<W> Unpin for DebugContainer<W>where
W: Unpin,
impl<W> UnwindSafe for DebugContainer<W>where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more