pub enum RenderMode {
State,
Resolve,
}Expand description
Which renderer a compiled component is expected to be rendered through.
A generated module always exposes both entry points, so this is not a codegen switch: it records which one the consumer calls, which decides whether an unresolvable template binding is worth reporting.
Variants§
State
The component is rendered through render_with_state, which reads
Signal/Ref fields and v-for loop items directly from the persistent
State. This is what veloxc and every generated main.rs use.
Resolve
The component is rendered through render_with/render_with_props,
which can only see strings a resolver closure supplies. A binding rooted
at a v-for loop item cannot resolve there, so it is reported.
Trait Implementations§
Source§impl Clone for RenderMode
impl Clone for RenderMode
impl Copy for RenderMode
Source§impl Debug for RenderMode
impl Debug for RenderMode
Source§impl Default for RenderMode
impl Default for RenderMode
impl Eq for RenderMode
Source§impl PartialEq for RenderMode
impl PartialEq for RenderMode
impl StructuralPartialEq for RenderMode
Auto Trait Implementations§
impl Freeze for RenderMode
impl RefUnwindSafe for RenderMode
impl Send for RenderMode
impl Sync for RenderMode
impl Unpin for RenderMode
impl UnsafeUnpin for RenderMode
impl UnwindSafe for RenderMode
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