pub struct ScriptBridger {
pub imports: Option<Imports>,
pub component: Option<ItemStruct>,
pub instance: Option<ItemImpl>,
pub events: Option<Vec<ItemEnum>>,
pub impl_component: Option<ItemImpl>,
pub props: Option<Vec<PropItem>>,
pub router: Option<RouterTk>,
pub others: Vec<Stmt>,
}Fields§
§imports: Option<Imports>§component: Option<ItemStruct>§instance: Option<ItemImpl>default impl
events: Option<Vec<ItemEnum>>§impl_component: Option<ItemImpl>§props: Option<Vec<PropItem>>prop struct|enum which use #[prop(true)] or #[prop(false)]
router: Option<RouterTk>router, if has router!{} block or router!(); block
if router has, only has router, other code is not allowed
others: Vec<Stmt>Trait Implementations§
Source§impl Debug for ScriptBridger
impl Debug for ScriptBridger
Source§impl ToTokens for ScriptBridger
impl ToTokens for ScriptBridger
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for ScriptBridger
impl RefUnwindSafe for ScriptBridger
impl !Send for ScriptBridger
impl !Sync for ScriptBridger
impl Unpin for ScriptBridger
impl UnsafeUnpin for ScriptBridger
impl UnwindSafe for ScriptBridger
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.