pub enum PageStep<'a> {
Call(FnHandle, Option<&'a str>),
Set(&'a str, &'a Value),
}Expand description
One step of a page’s computed data, for JsRuntime::page_run.
Variants§
Call(FnHandle, Option<&'a str>)
Call the function with the page’s data, and set its result at the dotted key.
Set(&'a str, &'a Value)
Set the dotted key to the value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for PageStep<'a>
impl<'a> Freeze for PageStep<'a>
impl<'a> Move for PageStep<'a>
impl<'a> RefUnwindSafe for PageStep<'a>
impl<'a> Send for PageStep<'a>
impl<'a> Sync for PageStep<'a>
impl<'a> Unpin for PageStep<'a>
impl<'a> UnsafeUnpin for PageStep<'a>
impl<'a> UnwindSafe for PageStep<'a>
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