pub struct FunctionBinding { /* private fields */ }
Expand description
The functions binding.
Specifies what is the name of the function object (name
property),
and the binding name of the function object which can be different
from the function name.
The only way to construct this is with the From
trait.
There are two implementations:
- From a single type
T
which implementsInto<FunctionBinding>
which sets the binding name and the function name to the same value - From a tuple
(B: Into<PropertyKey>, N: AsRef<str>)
theB
is the binding name and theN
is the function name.
Trait Implementations§
Source§impl Clone for FunctionBinding
impl Clone for FunctionBinding
Source§fn clone(&self) -> FunctionBinding
fn clone(&self) -> FunctionBinding
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 moreSource§impl Debug for FunctionBinding
impl Debug for FunctionBinding
Source§impl From<&str> for FunctionBinding
impl From<&str> for FunctionBinding
Source§impl<B, N> From<(B, N)> for FunctionBinding
impl<B, N> From<(B, N)> for FunctionBinding
Source§impl From<JsString> for FunctionBinding
impl From<JsString> for FunctionBinding
Auto Trait Implementations§
impl Freeze for FunctionBinding
impl !RefUnwindSafe for FunctionBinding
impl !Send for FunctionBinding
impl !Sync for FunctionBinding
impl Unpin for FunctionBinding
impl !UnwindSafe for FunctionBinding
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