Struct SFCInfo

Source
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§

Source§

impl<'a> Default for SFCInfo<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Erasable for T

Source§

const ACK_1_1_0: bool = true

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
Source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
Source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.