pub struct Export {
pub function: Function,
pub method_kind: MethodKind,
pub rust_class: Option<Ident>,
pub rust_name: Ident,
}
Expand description
A rust to js interface. Allows interaction with rust objects/functions from javascript.
Fields§
§function: Function
The rust function
method_kind: MethodKind
The kind (static, named, regular)
rust_class: Option<Ident>
The struct name, in Rust, this is attached to
rust_name: Ident
The name of the rust function/method on the rust source code
Trait Implementations§
Source§impl TryToTokens for Export
impl TryToTokens for Export
Source§fn try_to_tokens(
self: &Export,
into: &mut TokenStream,
) -> Result<(), Diagnostic>
fn try_to_tokens( self: &Export, into: &mut TokenStream, ) -> Result<(), Diagnostic>
Attempt to convert a
Self
into tokens and add it to the TokenStream
Source§fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
Attempt to convert a
Self
into a new TokenStream
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl !Send for Export
impl !Sync for Export
impl Unpin for Export
impl UnwindSafe for Export
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