Struct ambient_element::Memo
source · pub struct Memo<P: ElementComponent + PartialEq + Clone + 'static>(pub P);
Expand description
Memoize the ElementComponent, such that it is only re-rendered if the component changes.
Tuple Fields§
§0: P
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for Memo<P>where
P: RefUnwindSafe,
impl<P> Send for Memo<P>
impl<P> Sync for Memo<P>
impl<P> Unpin for Memo<P>where
P: Unpin,
impl<P> UnwindSafe for Memo<P>where
P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.