#[repr(u8)]pub enum SlotFlag {
Stable = 1,
Dynamic = 2,
Forwarded = 3,
}
Variants§
Stable = 1
Stable slots that only reference slot props or context state. The slot can fully capture its own dependencies so when passed down the parent won’t need to force the child to update.
Dynamic = 2
Slots that reference scope variables (v-for or an outer slot prop), or has conditional structure (v-if, v-for). The parent will need to force the child to update because the slot does not fully capture its dependencies.
Forwarded = 3
<slot/>
being forwarded into a child component. Whether the parent needs
to update the child is dependent on what kind of slots the parent itself
received. This has to be refined at runtime, when the child’s vnode
is being created (in normalizeChildren
)
Trait Implementations§
impl Copy for SlotFlag
Auto Trait Implementations§
impl Freeze for SlotFlag
impl RefUnwindSafe for SlotFlag
impl Send for SlotFlag
impl Sync for SlotFlag
impl Unpin for SlotFlag
impl UnwindSafe for SlotFlag
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