pub struct FragmentUse {
pub key: String,
pub args: Vec<(String, String)>,
pub slot_children: bool,
}Expand description
A fragment instantiation, recorded on the element that stands in for the fragment’s body until the tree is expanded.
The declaration side is crate::fragment::Fragment, looked up by
Self::key in the app’s crate::fragment::FragmentTable.
Fields§
§key: StringKey of the fragment being instantiated.
args: Vec<(String, String)>Arguments the use site passes, as (parameter name, value) pairs in
source order. A parameter absent here takes its declared default.
slot_children: boolWhether the use site supplies children of its own for the fragment’s
slot. The children themselves stay on Element::children; this
says they are slot content rather than the element’s own subtree.
Trait Implementations§
Source§impl Clone for FragmentUse
impl Clone for FragmentUse
Source§fn clone(&self) -> FragmentUse
fn clone(&self) -> FragmentUse
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 moreSource§impl Debug for FragmentUse
impl Debug for FragmentUse
Source§impl<'de> Deserialize<'de> for FragmentUse
impl<'de> Deserialize<'de> for FragmentUse
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 FragmentUse
impl RefUnwindSafe for FragmentUse
impl Send for FragmentUse
impl Sync for FragmentUse
impl Unpin for FragmentUse
impl UnsafeUnpin for FragmentUse
impl UnwindSafe for FragmentUse
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.