pub struct Fragment {
pub key: String,
pub params: Vec<FragmentParam>,
pub body: Vec<Element>,
pub origins: Vec<FragmentOrigin>,
pub kind: FragmentKind,
pub components: Vec<FragmentComponent>,
}Expand description
A named, parameterized markup subtree.
Fields§
§key: StringLookup key. A use site names this, and it is the key the fragment
occupies in a FragmentTable.
params: Vec<FragmentParam>Declared parameters, in source order.
body: Vec<Element>The subtree instantiated at each use site. More than one root is allowed: a fragment can expand to a sequence of siblings.
origins: Vec<FragmentOrigin>Every place this fragment was declared. Never empty for a fragment that came from source; a synthesized fragment may have none.
kind: FragmentKindWhich authoring form declared it.
components: Vec<FragmentComponent>Candela function names that reach this fragment. Empty for a
<template>, which is reached by its own key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fragment
impl<'de> Deserialize<'de> for Fragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.