pub struct SlotBuilder { /* private fields */ }Expand description
A builder struct for Slot
Implementations§
Source§impl SlotBuilder
impl SlotBuilder
Sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> &mut SlotBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut SlotBuilder
Insert a data-* property
Sourcepub fn abbreviation<F>(&mut self, f: F) -> &mut Self
pub fn abbreviation<F>(&mut self, f: F) -> &mut Self
Append a new Abbreviation element
Sourcepub fn bidirectional_isolate<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut BidirectionalIsolateBuilder) -> &'a mut BidirectionalIsolateBuilder,
pub fn bidirectional_isolate<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut BidirectionalIsolateBuilder) -> &'a mut BidirectionalIsolateBuilder,
Append a new BidirectionalIsolate element
Sourcepub fn bidirectional_text_override<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut BidirectionalTextOverrideBuilder) -> &'a mut BidirectionalTextOverrideBuilder,
pub fn bidirectional_text_override<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut BidirectionalTextOverrideBuilder) -> &'a mut BidirectionalTextOverrideBuilder,
Append a new BidirectionalTextOverride element
Sourcepub fn block_quote<F>(&mut self, f: F) -> &mut Self
pub fn block_quote<F>(&mut self, f: F) -> &mut Self
Append a new BlockQuote element
Append a new Button element
Sourcepub fn definition<F>(&mut self, f: F) -> &mut Self
pub fn definition<F>(&mut self, f: F) -> &mut Self
Append a new Definition element
Sourcepub fn deleted_text<F>(&mut self, f: F) -> &mut Self
pub fn deleted_text<F>(&mut self, f: F) -> &mut Self
Append a new DeletedText element
Sourcepub fn description_details<F>(&mut self, f: F) -> &mut Self
pub fn description_details<F>(&mut self, f: F) -> &mut Self
Append a new DescriptionDetails element
Sourcepub fn description_list<F>(&mut self, f: F) -> &mut Self
pub fn description_list<F>(&mut self, f: F) -> &mut Self
Append a new DescriptionList element
Sourcepub fn description_term<F>(&mut self, f: F) -> &mut Self
pub fn description_term<F>(&mut self, f: F) -> &mut Self
Append a new DescriptionTerm element
Sourcepub fn figure_caption<F>(&mut self, f: F) -> &mut Self
pub fn figure_caption<F>(&mut self, f: F) -> &mut Self
Append a new FigureCaption element
Append a new Footer element
Sourcepub fn heading_group<F>(&mut self, f: F) -> &mut Self
pub fn heading_group<F>(&mut self, f: F) -> &mut Self
Append a new HeadingGroup element
Sourcepub fn image_map_area<F>(&mut self, f: F) -> &mut Self
pub fn image_map_area<F>(&mut self, f: F) -> &mut Self
Append a new ImageMapArea element
Sourcepub fn inserted_text<F>(&mut self, f: F) -> &mut Self
pub fn inserted_text<F>(&mut self, f: F) -> &mut Self
Append a new InsertedText element
Sourcepub fn keyboard_input<F>(&mut self, f: F) -> &mut Self
pub fn keyboard_input<F>(&mut self, f: F) -> &mut Self
Append a new KeyboardInput element
Sourcepub fn line_break<F>(&mut self, f: F) -> &mut Self
pub fn line_break<F>(&mut self, f: F) -> &mut Self
Append a new LineBreak element
Sourcepub fn line_break_opportunity<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut LineBreakOpportunityBuilder) -> &'a mut LineBreakOpportunityBuilder,
pub fn line_break_opportunity<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut LineBreakOpportunityBuilder) -> &'a mut LineBreakOpportunityBuilder,
Append a new LineBreakOpportunity element
Sourcepub fn media_source<F>(&mut self, f: F) -> &mut Self
pub fn media_source<F>(&mut self, f: F) -> &mut Self
Append a new MediaSource element
Append a new Menu element
Append a new Navigation element
Sourcepub fn option_group<F>(&mut self, f: F) -> &mut Self
pub fn option_group<F>(&mut self, f: F) -> &mut Self
Append a new OptionGroup element
Sourcepub fn ordered_list<F>(&mut self, f: F) -> &mut Self
pub fn ordered_list<F>(&mut self, f: F) -> &mut Self
Append a new OrderedList element
Sourcepub fn preformatted_text<F>(&mut self, f: F) -> &mut Self
pub fn preformatted_text<F>(&mut self, f: F) -> &mut Self
Append a new PreformattedText element
Sourcepub fn ruby_annotation<F>(&mut self, f: F) -> &mut Self
pub fn ruby_annotation<F>(&mut self, f: F) -> &mut Self
Append a new RubyAnnotation element
Sourcepub fn ruby_fallback_parenthesis<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut RubyFallbackParenthesisBuilder) -> &'a mut RubyFallbackParenthesisBuilder,
pub fn ruby_fallback_parenthesis<F>(&mut self, f: F) -> &mut Selfwhere
F: for<'a> FnOnce(&'a mut RubyFallbackParenthesisBuilder) -> &'a mut RubyFallbackParenthesisBuilder,
Append a new RubyFallbackParenthesis element
Sourcepub fn sample_output<F>(&mut self, f: F) -> &mut Self
pub fn sample_output<F>(&mut self, f: F) -> &mut Self
Append a new SampleOutput element
Sourcepub fn side_comment<F>(&mut self, f: F) -> &mut Self
pub fn side_comment<F>(&mut self, f: F) -> &mut Self
Append a new SideComment element
Sourcepub fn strike_through<F>(&mut self, f: F) -> &mut Self
pub fn strike_through<F>(&mut self, f: F) -> &mut Self
Append a new StrikeThrough element
Sourcepub fn sub_script<F>(&mut self, f: F) -> &mut Self
pub fn sub_script<F>(&mut self, f: F) -> &mut Self
Append a new SubScript element
Sourcepub fn super_script<F>(&mut self, f: F) -> &mut Self
pub fn super_script<F>(&mut self, f: F) -> &mut Self
Append a new SuperScript element
Sourcepub fn table_body<F>(&mut self, f: F) -> &mut Self
pub fn table_body<F>(&mut self, f: F) -> &mut Self
Append a new TableBody element
Sourcepub fn table_cell<F>(&mut self, f: F) -> &mut Self
pub fn table_cell<F>(&mut self, f: F) -> &mut Self
Append a new TableCell element
Sourcepub fn table_column<F>(&mut self, f: F) -> &mut Self
pub fn table_column<F>(&mut self, f: F) -> &mut Self
Append a new TableColumn element
Sourcepub fn table_column_group<F>(&mut self, f: F) -> &mut Self
pub fn table_column_group<F>(&mut self, f: F) -> &mut Self
Append a new TableColumnGroup element
Sourcepub fn table_foot<F>(&mut self, f: F) -> &mut Self
pub fn table_foot<F>(&mut self, f: F) -> &mut Self
Append a new TableFoot element
Sourcepub fn table_head<F>(&mut self, f: F) -> &mut Self
pub fn table_head<F>(&mut self, f: F) -> &mut Self
Append a new TableHead element
Sourcepub fn table_header<F>(&mut self, f: F) -> &mut Self
pub fn table_header<F>(&mut self, f: F) -> &mut Self
Append a new TableHeader element
Sourcepub fn text(&mut self, s: impl Into<Cow<'static, str>>) -> &mut Self
pub fn text(&mut self, s: impl Into<Cow<'static, str>>) -> &mut Self
Append a new text element.
Sourcepub fn text_track<F>(&mut self, f: F) -> &mut Self
pub fn text_track<F>(&mut self, f: F) -> &mut Self
Append a new TextTrack element
Sourcepub fn thematic_break<F>(&mut self, f: F) -> &mut Self
pub fn thematic_break<F>(&mut self, f: F) -> &mut Self
Append a new ThematicBreak element
Sourcepub fn unordered_list<F>(&mut self, f: F) -> &mut Self
pub fn unordered_list<F>(&mut self, f: F) -> &mut Self
Append a new UnorderedList element
Sourcepub fn name(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn name(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the name attribute
Sourcepub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the accesskey attribute
Sourcepub fn auto_capitalize(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the autocapitalize attribute
Sourcepub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the class attribute
Sourcepub fn content_editable(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the contenteditable attribute
Sourcepub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the dir attribute
Sourcepub fn enter_key_hint(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the enterkeyhint attribute
Sourcepub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the exportparts attribute
Set the value of the hidden attribute
Sourcepub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the id attribute
Sourcepub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the inputmode attribute
Sourcepub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the is attribute
Sourcepub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemid attribute
Sourcepub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemprop attribute
Sourcepub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemref attribute
Sourcepub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemscope attribute
Sourcepub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemtype attribute
Sourcepub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the lang attribute
Sourcepub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the nonce attribute
Sourcepub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the part attribute
Sourcepub fn slot_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn slot_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the slot attribute
Sourcepub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the spellcheck attribute
Sourcepub fn style_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn style_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the style attribute
Sourcepub fn title_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn title_attr(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the title attribute
Sourcepub fn push<T>(&mut self, child_el: T) -> &mut Self
pub fn push<T>(&mut self, child_el: T) -> &mut Self
Push a new child element to the list of children.