Skip to main content

EventTreeNodeKind

Enum EventTreeNodeKind 

Source
pub enum EventTreeNodeKind {
    Owner(EventOwnerTreeNode),
    Event(EventTreeNode),
}
Expand description

What the deriving class of a node adds to it: the owner of a group of routed events (EventOwnerTreeNode) or one routed event (EventTreeNode).

Upstream the node is an abstract class with these two deriving classes, whose IsEnabled overrides the virtual property of the base. In the port a node is one shared type, EventTreeNodeBase, that carries the part of its deriving class: the tree of the events page holds one model type (its cell template is typed with the base class), and the type tests of the original (node is EventTreeNode eventNode) are the hooks EventTreeNodeBase::as_event_tree_node and EventTreeNodeBase::as_event_owner_tree_node.

Variants§

§

Owner(EventOwnerTreeNode)

A node of an EventOwnerTreeNode.

§

Event(EventTreeNode)

A node of an EventTreeNode.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.