[][src]Enum vgtk::VNode

pub enum VNode<Model: Component> {
    Object(VObject<Model>),
    Component(VComponent<Model>),
}

A node in the virtual component tree representing a Component or a Gtk widget.

Don't attempt to construct these directly. Use the gtk! macro instead.

Variants

Object(VObject<Model>)
Component(VComponent<Model>)

Methods

impl<Model: Component> VNode<Model>[src]

Important traits for VNodeIterator<Model>
pub fn empty() -> VNodeIterator<Model>[src]

Make an empty iterator of VNodes.

Use this inside a code block in the gtk! macro to return an empty list of child nodes.

Trait Implementations

impl<Model: Component> IntoIterator for VNode<Model>[src]

type Item = VNode<Model>

The type of the elements being iterated over.

type IntoIter = VNodeIterator<Model>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<Model> !RefUnwindSafe for VNode<Model>

impl<Model> !Send for VNode<Model>

impl<Model> !Sync for VNode<Model>

impl<Model> Unpin for VNode<Model>

impl<Model> !UnwindSafe for VNode<Model>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.