pub struct JsFunctionSpec { /* private fields */ }Expand description
Function specification for the registry
Implementations§
Source§impl JsFunctionSpec
impl JsFunctionSpec
pub const fn new(js_code: fn() -> String) -> JsFunctionSpec
pub const fn resolve_as<F>(&self) -> LazyJsFunction<F>
Trait Implementations§
Source§impl Clone for JsFunctionSpec
impl Clone for JsFunctionSpec
Source§fn clone(&self) -> JsFunctionSpec
fn clone(&self) -> JsFunctionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Collect for JsFunctionSpec
impl Copy for JsFunctionSpec
Auto Trait Implementations§
impl Freeze for JsFunctionSpec
impl RefUnwindSafe for JsFunctionSpec
impl Send for JsFunctionSpec
impl Sync for JsFunctionSpec
impl Unpin for JsFunctionSpec
impl UnwindSafe for JsFunctionSpec
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