Struct html::content::builders::NavigationBuilder
source · 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 end(&mut self)
pub fn end(&mut self)
The final term in a chaining constructor.
This takes &mut self
, and returns nothing. So you
can use it as the final method when chaining in a closure.
sourcepub fn address<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut AddressBuilder),
pub fn address<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut AddressBuilder),
Append a new Address
element
sourcepub fn article<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut ArticleBuilder),
pub fn article<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ArticleBuilder),
Append a new Article
element
sourcepub fn aside<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut AsideBuilder),
pub fn aside<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut AsideBuilder),
Append a new Aside
element
sourcepub fn block_quote<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut BlockQuoteBuilder),
pub fn block_quote<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut BlockQuoteBuilder),
Append a new BlockQuote
element
sourcepub fn description_list<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut DescriptionListBuilder),
pub fn description_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DescriptionListBuilder),
Append a new DescriptionList
element
sourcepub fn details<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut DetailsBuilder),
pub fn details<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DetailsBuilder),
Append a new Details
element
sourcepub fn dialog<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut DialogBuilder),
pub fn dialog<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DialogBuilder),
Append a new Dialog
element
sourcepub fn division<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut DivisionBuilder),
pub fn division<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DivisionBuilder),
Append a new Division
element
sourcepub fn fieldset<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut FieldsetBuilder),
pub fn fieldset<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FieldsetBuilder),
Append a new Fieldset
element
sourcepub fn figure<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut FigureBuilder),
pub fn figure<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FigureBuilder),
Append a new Figure
element
Append a new Footer
element
sourcepub fn form<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut FormBuilder),
pub fn form<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FormBuilder),
Append a new Form
element
sourcepub fn header<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut HeaderBuilder),
pub fn header<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut HeaderBuilder),
Append a new Header
element
sourcepub fn main<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut MainBuilder),
pub fn main<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut MainBuilder),
Append a new Main
element
Append a new Menu
element
Append a new Navigation
element
sourcepub fn ordered_list<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut OrderedListBuilder),
pub fn ordered_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut OrderedListBuilder),
Append a new OrderedList
element
sourcepub fn paragraph<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut ParagraphBuilder),
pub fn paragraph<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ParagraphBuilder),
Append a new Paragraph
element
sourcepub fn preformatted_text<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut PreformattedTextBuilder),
pub fn preformatted_text<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut PreformattedTextBuilder),
Append a new PreformattedText
element
sourcepub fn section<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut SectionBuilder),
pub fn section<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut SectionBuilder),
Append a new Section
element
sourcepub fn table<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut TableBuilder),
pub fn table<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut TableBuilder),
Append a new Table
element
sourcepub fn thematic_break<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut ThematicBreakBuilder),
pub fn thematic_break<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ThematicBreakBuilder),
Append a new ThematicBreak
element
sourcepub fn unordered_list<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut UnorderedListBuilder),
pub fn unordered_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut UnorderedListBuilder),
Append a new UnorderedList
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 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(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn slot(&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