Struct widgetry::Stash[][src]

pub struct Stash<T> {
    value: Rc<RefCell<T>>,
}

An invisible widget that stores some arbitrary data on the Panel. Users of the panel can read and write the value. This is one method for “returning” data when a State completes.

Fields

value: Rc<RefCell<T>>

Implementations

impl<T: 'static> Stash<T>[src]

pub fn new(name: &str, value: T) -> Widget[src]

pub(crate) fn get_value(&self) -> Rc<RefCell<T>>[src]

Trait Implementations

impl<T: 'static> WidgetImpl for Stash<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Stash<T>

impl<T> !Send for Stash<T>

impl<T> !Sync for Stash<T>

impl<T> Unpin for Stash<T>

impl<T> !UnwindSafe for Stash<T>

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> Downcast for T where
    T: Any

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.