Struct dioxus_rsx::CallBody
source · pub struct CallBody {
pub roots: Vec<BodyNode>,
}
Expand description
Fundametnally, every CallBody is a template
Fields§
§roots: Vec<BodyNode>
Implementations§
source§impl CallBody
impl CallBody
sourcepub fn render_with_location(&self, location: String) -> TokenStream2
pub fn render_with_location(&self, location: String) -> TokenStream2
Render the template with a manually set file location. This should be used when multiple rsx! calls are used in the same macro
Trait Implementations§
source§impl ToTokens for CallBody
impl ToTokens for CallBody
Serialize the same way, regardless of flavor
source§fn to_tokens(&self, out_tokens: &mut TokenStream2)
fn to_tokens(&self, out_tokens: &mut TokenStream2)
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 RefUnwindSafe for CallBody
impl !Send for CallBody
impl !Sync for CallBody
impl Unpin for CallBody
impl UnwindSafe for CallBody
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> 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.