pub enum RouteBody<'a> {
Statements(Block<'a>),
View(ViewDef<'a>),
}Expand description
A ## Route’s body: ordinary statements, or a template for a -> View route. The template
is boxed: a ViewDef inline would make every Stmt as wide as a view route.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RouteBody<'a>
impl<'a> RefUnwindSafe for RouteBody<'a>
impl<'a> Send for RouteBody<'a>
impl<'a> Sync for RouteBody<'a>
impl<'a> Unpin for RouteBody<'a>
impl<'a> UnsafeUnpin for RouteBody<'a>
impl<'a> UnwindSafe for RouteBody<'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