pub struct MarkTextBuilder { /* private fields */ }Expand description
A builder struct for MarkText
Implementations§
Source§impl MarkTextBuilder
impl MarkTextBuilder
Sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> &mut MarkTextBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut MarkTextBuilder
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
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 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 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 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 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 role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the role attribute
Sourcepub fn aria_active_descendant_element(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_active_descendant_element( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-activedescendant attribute
Sourcepub fn aria_atomic(&mut self, value: bool) -> &mut Self
pub fn aria_atomic(&mut self, value: bool) -> &mut Self
Set the value of the aria-atomic attribute
Sourcepub fn aria_auto_complete(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_auto_complete( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-autocomplete attribute
Sourcepub fn aria_braille_role_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_braille_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-brailleroledescription attribute
Sourcepub fn aria_checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-checked attribute
Sourcepub fn aria_col_count(&mut self, value: i64) -> &mut Self
pub fn aria_col_count(&mut self, value: i64) -> &mut Self
Set the value of the aria-colcount attribute
Sourcepub fn aria_col_index(&mut self, value: i64) -> &mut Self
pub fn aria_col_index(&mut self, value: i64) -> &mut Self
Set the value of the aria-colindex attribute
Sourcepub fn aria_col_index_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_col_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-colindextext attribute
Sourcepub fn aria_col_span(&mut self, value: i64) -> &mut Self
pub fn aria_col_span(&mut self, value: i64) -> &mut Self
Set the value of the aria-colspan attribute
Sourcepub fn aria_controls_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_controls_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-controls attribute
Sourcepub fn aria_current(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_current(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-current attribute
Sourcepub fn aria_described_by_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_described_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-describedby attribute
Sourcepub fn aria_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-description attribute
Sourcepub fn aria_details_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_details_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-details attribute
Sourcepub fn aria_disabled(&mut self, value: bool) -> &mut Self
pub fn aria_disabled(&mut self, value: bool) -> &mut Self
Set the value of the aria-disabled attribute
Sourcepub fn aria_drop_effect(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_drop_effect( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-dropeffect attribute
Sourcepub fn aria_error_message_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_error_message_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-errormessage attribute
Sourcepub fn aria_expanded(&mut self, value: bool) -> &mut Self
pub fn aria_expanded(&mut self, value: bool) -> &mut Self
Set the value of the aria-expanded attribute
Sourcepub fn aria_flow_to_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_flow_to_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-flowto attribute
Sourcepub fn aria_grabbed(&mut self, value: bool) -> &mut Self
pub fn aria_grabbed(&mut self, value: bool) -> &mut Self
Set the value of the aria-grabbed attribute
Sourcepub fn aria_has_popup(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_has_popup( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-haspopup attribute
Set the value of the aria-hidden attribute
Sourcepub fn aria_invalid(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_invalid(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-invalid attribute
Sourcepub fn aria_key_shortcuts(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_key_shortcuts( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-keyshortcuts attribute
Sourcepub fn aria_level(&mut self, value: i64) -> &mut Self
pub fn aria_level(&mut self, value: i64) -> &mut Self
Set the value of the aria-level attribute
Sourcepub fn aria_live(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_live(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-live attribute
Sourcepub fn aria_modal(&mut self, value: bool) -> &mut Self
pub fn aria_modal(&mut self, value: bool) -> &mut Self
Set the value of the aria-modal attribute
Sourcepub fn aria_multi_line(&mut self, value: bool) -> &mut Self
pub fn aria_multi_line(&mut self, value: bool) -> &mut Self
Set the value of the aria-multiline attribute
Sourcepub fn aria_multi_selectable(&mut self, value: bool) -> &mut Self
pub fn aria_multi_selectable(&mut self, value: bool) -> &mut Self
Set the value of the aria-multiselectable attribute
Sourcepub fn aria_orientation(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_orientation( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-orientation attribute
Sourcepub fn aria_owns_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_owns_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-owns attribute
Sourcepub fn aria_placeholder(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_placeholder( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-placeholder attribute
Sourcepub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self
pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self
Set the value of the aria-posinset attribute
Sourcepub fn aria_pressed(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_pressed(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-pressed attribute
Sourcepub fn aria_read_only(&mut self, value: bool) -> &mut Self
pub fn aria_read_only(&mut self, value: bool) -> &mut Self
Set the value of the aria-readonly attribute
Sourcepub fn aria_relevant(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_relevant( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-relevant attribute
Sourcepub fn aria_required(&mut self, value: bool) -> &mut Self
pub fn aria_required(&mut self, value: bool) -> &mut Self
Set the value of the aria-required attribute
Sourcepub fn aria_role_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-roledescription attribute
Sourcepub fn aria_row_count(&mut self, value: i64) -> &mut Self
pub fn aria_row_count(&mut self, value: i64) -> &mut Self
Set the value of the aria-rowcount attribute
Sourcepub fn aria_row_index(&mut self, value: i64) -> &mut Self
pub fn aria_row_index(&mut self, value: i64) -> &mut Self
Set the value of the aria-rowindex attribute
Sourcepub fn aria_row_index_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_row_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-rowindextext attribute
Sourcepub fn aria_row_span(&mut self, value: i64) -> &mut Self
pub fn aria_row_span(&mut self, value: i64) -> &mut Self
Set the value of the aria-rowspan attribute
Sourcepub fn aria_selected(&mut self, value: bool) -> &mut Self
pub fn aria_selected(&mut self, value: bool) -> &mut Self
Set the value of the aria-selected attribute
Sourcepub fn aria_set_size(&mut self, value: i64) -> &mut Self
pub fn aria_set_size(&mut self, value: i64) -> &mut Self
Set the value of the aria-setsize attribute
Sourcepub fn aria_sort(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_sort(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-sort attribute
Sourcepub fn aria_value_max(&mut self, value: f64) -> &mut Self
pub fn aria_value_max(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuemax attribute
Sourcepub fn aria_value_min(&mut self, value: f64) -> &mut Self
pub fn aria_value_min(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuemin attribute
Sourcepub fn aria_value_now(&mut self, value: f64) -> &mut Self
pub fn aria_value_now(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuenow attribute
Sourcepub fn aria_value_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_value_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-valuetext 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(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the style attribute
Sourcepub fn title(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn title(&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 Selfwhere
T: Into<MarkTextChild>,
pub fn push<T>(&mut self, child_el: T) -> &mut Selfwhere
T: Into<MarkTextChild>,
Push a new child element to the list of children.