pub struct MarkupBlock {
pub offset: usize,
pub markup: String,
pub key: String,
pub args: Vec<String>,
pub component: Option<FragmentComponent>,
}Expand description
One markup block a script writes: a fragment of markup a script instantiates by key, read out of the script before anything runs.
Fields§
§offset: usizeByte offset of the block’s body in the script, for an error that names a line.
markup: StringThe block’s markup, ready for the markup front-end.
key: StringThe key a script instantiates the block by.
args: Vec<String>The names the block’s argument sites bind.
component: Option<FragmentComponent>The function this block is the whole body of, when a use site can write that function as a tag.
Trait Implementations§
Source§impl Clone for MarkupBlock
impl Clone for MarkupBlock
Source§fn clone(&self) -> MarkupBlock
fn clone(&self) -> MarkupBlock
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 MarkupBlock
impl Debug for MarkupBlock
Source§impl PartialEq for MarkupBlock
impl PartialEq for MarkupBlock
Source§fn eq(&self, other: &MarkupBlock) -> bool
fn eq(&self, other: &MarkupBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkupBlock
Auto Trait Implementations§
impl Freeze for MarkupBlock
impl RefUnwindSafe for MarkupBlock
impl Send for MarkupBlock
impl Sync for MarkupBlock
impl Unpin for MarkupBlock
impl UnsafeUnpin for MarkupBlock
impl UnwindSafe for MarkupBlock
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.