[][src]Trait mogwai::gizmo::SubGizmo

pub trait SubGizmo where
    Self: Sized
{ fn into_sub_gizmo(self) -> Result<Gizmo<Node>, Node>; }

Anything that can be nested within a Gizmo.

Required methods

fn into_sub_gizmo(self) -> Result<Gizmo<Node>, Node>

Attempts to turn the Gizmo into a child gizmo who's inner element is a Node, if possible. Otherwise this will return a Node.

Loading content...

Implementors

impl<'_, T: JsCast + AsRef<Node> + Clone> SubGizmo for &'_ Gizmo<T>[src]

impl<T> SubGizmo for GizmoComponent<T> where
    T: Component,
    T::DomNode: AsRef<Node>, 
[src]

impl<T> SubGizmo for T where
    T: Component,
    T::DomNode: AsRef<Node>, 
[src]

impl<T: JsCast + AsRef<Node> + Clone> SubGizmo for Gizmo<T>[src]

Loading content...