Struct termwiz::widgets::WidgetId[][src]

pub struct WidgetId(_);

The WidgetId uniquely describes an instance of a widget. Creating a new WidgetId generates a new unique identifier which can be safely copied and moved around; each copy refers to the same widget. The intent is that you set up the identifiers once and re-use them, rather than generating new ids on each iteration of the UI loop so that the widget state is maintained correctly by the Ui.

Implementations

impl WidgetId[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for WidgetId[src]

impl Copy for WidgetId[src]

impl Debug for WidgetId[src]

impl Default for WidgetId[src]

impl Eq for WidgetId[src]

impl Hash for WidgetId[src]

impl Ord for WidgetId[src]

impl PartialEq<WidgetId> for WidgetId[src]

impl PartialOrd<WidgetId> for WidgetId[src]

impl StructuralEq for WidgetId[src]

impl StructuralPartialEq for WidgetId[src]

Auto Trait Implementations

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<T> RuleType for T where
    T: Copy + Debug + Eq + Hash + Ord
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.