pub struct CachedVals(pub Box<[Option<Value>]>);
Tuple Fields§
§0: Box<[Option<Value>]>
Implementations§
Source§impl CachedVals
impl CachedVals
pub fn new<C: Ctx, E: UserEvent>(from: &[Node<C, E>]) -> CachedVals
pub fn update<C: Ctx, E: UserEvent>( &mut self, ctx: &mut ExecCtx<C, E>, from: &mut [Node<C, E>], event: &mut Event<E>, ) -> bool
Sourcepub fn update_diff<C: Ctx, E: UserEvent>(
&mut self,
up: &mut [bool],
ctx: &mut ExecCtx<C, E>,
from: &mut [Node<C, E>],
event: &mut Event<E>,
)
pub fn update_diff<C: Ctx, E: UserEvent>( &mut self, up: &mut [bool], ctx: &mut ExecCtx<C, E>, from: &mut [Node<C, E>], event: &mut Event<E>, )
Like update, but return the indexes of the nodes that updated instead of a consolidated bool
pub fn flat_iter<'a>(&'a self) -> impl Iterator<Item = Option<Value>> + 'a
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CachedVals
impl RefUnwindSafe for CachedVals
impl Send for CachedVals
impl Sync for CachedVals
impl Unpin for CachedVals
impl UnwindSafe for CachedVals
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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