pub struct TopScope<'a> {
pub helpers: HelperCollector,
pub components: FxHashSet<VStr<'a>>,
pub directives: FxHashSet<VStr<'a>>,
pub hoists: Vec<BaseIR<'a>>,
pub cached: usize,
pub temps: usize,
}
Fields§
§helpers: HelperCollector
runtime helpers used in template
components: FxHashSet<VStr<'a>>
components that requires resolveComponent call
directives: FxHashSet<VStr<'a>>
directives that requires resolveDirecitve call
hoists: Vec<BaseIR<'a>>
hoisted vnode/text/js object
cached: usize
counters for cached instance, increment per v-once/memo
temps: usize
counters for temporary variables created in template
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TopScope<'a>
impl<'a> RefUnwindSafe for TopScope<'a>
impl<'a> Send for TopScope<'a>
impl<'a> Sync for TopScope<'a>
impl<'a> Unpin for TopScope<'a>
impl<'a> UnwindSafe for TopScope<'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