Trait pixel_widgets::node::IntoNode[][src]

pub trait IntoNode<'a, Message: 'a>: 'a + Sized {
    fn into_node(self) -> Node<'a, Message>;

    fn class(self, class: &'a str) -> Node<'a, Message> { ... }
fn key<K: Hash>(self, key: K) -> Node<'a, Message> { ... } }
Expand description

Convert widget to a Node. All widgets should implement this trait. It is also implemented by Node itself, which simply returns self.

Required methods

Perform the conversion.

Provided methods

Convenience function that converts to a node and then adds a style class to the resulting Node.

Convenience function that converts to a node and then sets a custom id to the resulting Node.

Implementors