pub enum LayoutGlobalResolution {
Literal(&'static str),
CapturedAtMount {
field_type: &'static str,
mount_expr: &'static str,
},
}Expand description
How a LayoutGlobal gets a real value in generated code.
Variants§
Literal(&'static str)
A plain Rust literal expression - safe only because the value is
purely cosmetic (see theme below); never used for anything
security- or identity-sensitive.
CapturedAtMount
render(&self) has no session, but mount(session, props)
does - captured there once, into a new struct field of
field_type, via mount_expr (a session-referencing
expression, evaluated with .await).
Trait Implementations§
Source§impl Clone for LayoutGlobalResolution
impl Clone for LayoutGlobalResolution
impl Copy for LayoutGlobalResolution
Auto Trait Implementations§
impl Forget for LayoutGlobalResolution
impl Freeze for LayoutGlobalResolution
impl Move for LayoutGlobalResolution
impl RefUnwindSafe for LayoutGlobalResolution
impl Send for LayoutGlobalResolution
impl Sync for LayoutGlobalResolution
impl Unpin for LayoutGlobalResolution
impl UnsafeUnpin for LayoutGlobalResolution
impl UnwindSafe for LayoutGlobalResolution
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