pub struct ComponentBuildContext<'a> {
pub component: &'a Component,
pub template: &'a str,
pub uses_shadow_dom: bool,
pub style: Option<ComponentStyleDelivery<'a>>,
}Expand description
A component template after the parser has resolved its build behavior.
Fields§
§component: &'a ComponentRegistered component definition.
template: &'a strFinal template view intended for the plugin runtime.
uses_shadow_dom: boolWhether this component effectively uses Shadow DOM.
style: Option<ComponentStyleDelivery<'a>>CSS delivery for effective Shadow DOM components.
Trait Implementations§
Source§impl<'a> Clone for ComponentBuildContext<'a>
impl<'a> Clone for ComponentBuildContext<'a>
Source§fn clone(&self) -> ComponentBuildContext<'a>
fn clone(&self) -> ComponentBuildContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ComponentBuildContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentBuildContext<'a>
impl<'a> RefUnwindSafe for ComponentBuildContext<'a>
impl<'a> Send for ComponentBuildContext<'a>
impl<'a> Sync for ComponentBuildContext<'a>
impl<'a> Unpin for ComponentBuildContext<'a>
impl<'a> UnsafeUnpin for ComponentBuildContext<'a>
impl<'a> UnwindSafe for ComponentBuildContext<'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