Struct boa::object::FunctionBinding
source · [−]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
sourceimpl Clone for FunctionBinding
impl Clone for FunctionBinding
sourcefn clone(&self) -> FunctionBinding
fn clone(&self) -> FunctionBinding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FunctionBinding
impl Debug for FunctionBinding
sourceimpl From<&str> for FunctionBinding
impl From<&str> for FunctionBinding
sourceimpl<B, N> From<(B, N)> for FunctionBindingwhere
B: Into<PropertyKey>,
N: AsRef<str>,
impl<B, N> From<(B, N)> for FunctionBindingwhere
B: Into<PropertyKey>,
N: AsRef<str>,
sourceimpl From<JsString> for FunctionBinding
impl From<JsString> for FunctionBinding
Auto Trait Implementations
impl !RefUnwindSafe for FunctionBinding
impl !Send for FunctionBinding
impl !Sync for FunctionBinding
impl Unpin for FunctionBinding
impl !UnwindSafe for FunctionBinding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more