pub struct NavigationBuilder { /* private fields */ }Expand description
A builder struct for Navigation
Implementations§
Sourcepub fn build(&mut self) -> Navigation
pub fn build(&mut self) -> Navigation
Finish building the element
Sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> &mut NavigationBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut NavigationBuilder
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_list<F>(&mut self, f: F) -> &mut Self
pub fn description_list<F>(&mut self, f: F) -> &mut Self
Append a new DescriptionList 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
Append a new Menu element
Append a new Navigation 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 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 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 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_braille_label(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_braille_label( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-braillelabel 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_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_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_label(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_label(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-label attribute
Sourcepub fn aria_labelled_by_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_labelled_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-labelledby 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_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_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_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 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<NavigationChild>,
pub fn push<T>(&mut self, child_el: T) -> &mut Selfwhere
T: Into<NavigationChild>,
Push a new child element to the list of children.