pub enum DirectiveConvertResult<Expr> {
Converted {
value: Expr,
runtime: Result<RuntimeHelper, bool>,
},
Preserve,
Dropped,
}
Expand description
Directive’s prop argument passed to VNodeCall after conversion.
Use Dropped if the directive is dropped implicitly without codegen.
NB: this is not 100% translation from TS. value
accepts both Props and Object.
Variants§
Converted
Fields
§
value: Expr
§
runtime: Result<RuntimeHelper, bool>
Ok if it needs builtin runtime helper Err(bool) indicates if it is user defined runtime dir
Preserve
Dropped
Auto Trait Implementations§
impl<Expr> Freeze for DirectiveConvertResult<Expr>where
Expr: Freeze,
impl<Expr> RefUnwindSafe for DirectiveConvertResult<Expr>where
Expr: RefUnwindSafe,
impl<Expr> Send for DirectiveConvertResult<Expr>where
Expr: Send,
impl<Expr> Sync for DirectiveConvertResult<Expr>where
Expr: Sync,
impl<Expr> Unpin for DirectiveConvertResult<Expr>where
Expr: Unpin,
impl<Expr> UnwindSafe for DirectiveConvertResult<Expr>where
Expr: UnwindSafe,
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