Type Alias GlobalMemo

Source
pub type GlobalMemo<T> = Global<Memo<T>, T>;
Expand description

A memo that can be accessed from anywhere in the application and created in a static

Aliased Type§

struct GlobalMemo<T> { /* private fields */ }

Implementations§

Source§

impl<T: PartialEq + 'static> GlobalMemo<T>

Source

pub fn id(&self) -> GenerationalBoxId

Get the generational id of the signal.

Source

pub fn memo(&self) -> Memo<T>

Resolve the global memo. This will try to get the existing value from the current virtual dom, and if it doesn’t exist, it will create a new one.

Trait Implementations§

Source§

impl<T> Debug for GlobalMemo<T>
where T: PartialEq + Debug + 'static,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Display for GlobalMemo<T>
where T: PartialEq + Display + 'static,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> PartialEq<T> for GlobalMemo<T>
where T: PartialEq + 'static,

Source§

fn eq(&self, other: &T) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.