pub struct SFCInfo<'a> {
pub inline: bool,
pub slotted: bool,
pub scope_id: Option<String>,
pub binding_metadata: Rc<BindingMetadata<'a>>,
pub self_name: String,
}
Expand description
SFC info of the current template
Fields§
§inline: bool
Compile the function for inlining inside setup(). This allows the function to directly access setup() local bindings.
slotted: bool
Indicates this SFC template has used :slotted in its styles
Defaults to true
for backwards compatibility - SFC tooling should set it
to false
if no :slotted
usage is detected in <style>
scope_id: Option<String>
§binding_metadata: Rc<BindingMetadata<'a>>
Optional binding metadata analyzed from script - used to optimize
binding access when prefixIdentifiers
is enabled.
self_name: String
current SFC filename for self-referencing
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SFCInfo<'a>
impl<'a> RefUnwindSafe for SFCInfo<'a>
impl<'a> !Send for SFCInfo<'a>
impl<'a> !Sync for SFCInfo<'a>
impl<'a> Unpin for SFCInfo<'a>
impl<'a> UnwindSafe for SFCInfo<'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