Struct concoct::view::Remember

source ·
pub struct Remember<F, S, G, V> { /* private fields */ }

Implementations§

source§

impl<F, S, G, V> Remember<F, S, G, V>

source

pub fn new(make_state: F, make_view: G) -> Self

Trait Implementations§

source§

impl<T, A, F, S, G, V> View<T, A> for Remember<F, S, G, V>where F: FnMut() -> S, G: FnMut(&mut S) -> V, V: View<S, A>,

source§

fn build(&mut self, cx: &mut BuildContext) -> Id

source§

fn rebuild(&mut self, cx: &mut BuildContext, old: &mut Self)

source§

fn layout(&mut self, cx: &mut LayoutContext, id: Id)

source§

fn paint(&mut self, taffy: &Taffy, canvas: &mut Canvas)

source§

fn message( &mut self, _state: &mut T, id_path: &[Id], message: &dyn Any ) -> Option<A>

Auto Trait Implementations§

§

impl<F, S, G, V> RefUnwindSafe for Remember<F, S, G, V>where F: RefUnwindSafe, G: RefUnwindSafe, S: RefUnwindSafe, V: RefUnwindSafe,

§

impl<F, S, G, V> Send for Remember<F, S, G, V>where F: Send, G: Send, S: Send, V: Send,

§

impl<F, S, G, V> Sync for Remember<F, S, G, V>where F: Sync, G: Sync, S: Sync, V: Sync,

§

impl<F, S, G, V> Unpin for Remember<F, S, G, V>where F: Unpin, G: Unpin, S: Unpin, V: Unpin,

§

impl<F, S, G, V> UnwindSafe for Remember<F, S, G, V>where F: UnwindSafe, G: UnwindSafe, S: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.
source§

impl<T> AutoreleaseSafe for Twhere T: ?Sized,