pub struct ExportBinding<'a> { /* private fields */ }
Expand description
Representation of a binding of an exported function.
Can be used to learn about binding expressions and/or binding types.
Implementations§
Source§impl ExportBinding<'_>
impl ExportBinding<'_>
Sourcepub fn param_bindings(&self) -> Result<Vec<IncomingBindingExpression>>
pub fn param_bindings(&self) -> Result<Vec<IncomingBindingExpression>>
Returns the list of binding expressions used to create the parameters for this binding.
Sourcepub fn param_types(&self) -> Result<Vec<WebidlScalarType>>
pub fn param_types(&self) -> Result<Vec<WebidlScalarType>>
Returns the list of scalar types used for this binding
Sourcepub fn result_bindings(&self) -> Result<Vec<OutgoingBindingExpression>>
pub fn result_bindings(&self) -> Result<Vec<OutgoingBindingExpression>>
Returns the list of binding expressions used to extract the return values of this binding.
Auto Trait Implementations§
impl<'a> Freeze for ExportBinding<'a>
impl<'a> RefUnwindSafe for ExportBinding<'a>
impl<'a> Send for ExportBinding<'a>
impl<'a> Sync for ExportBinding<'a>
impl<'a> Unpin for ExportBinding<'a>
impl<'a> UnwindSafe for ExportBinding<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more