pub struct NavigationBuilder { /* private fields */ }
Expand description

A builder struct for Navigation

Implementations§

source§

impl NavigationBuilder

source

pub fn build(&mut self) -> Navigation

Finish building the element

source

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.

source

pub fn address<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut AddressBuilder),

Append a new Address element

source

pub fn article<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ArticleBuilder),

Append a new Article element

source

pub fn aside<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut AsideBuilder),

Append a new Aside element

source

pub fn block_quote<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut BlockQuoteBuilder),

Append a new BlockQuote element

source

pub fn description_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DescriptionListBuilder),

Append a new DescriptionList element

source

pub fn details<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DetailsBuilder),

Append a new Details element

source

pub fn dialog<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DialogBuilder),

Append a new Dialog element

source

pub fn division<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut DivisionBuilder),

Append a new Division element

source

pub fn fieldset<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FieldsetBuilder),

Append a new Fieldset element

source

pub fn figure<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FigureBuilder),

Append a new Figure element

source

pub fn footer<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FooterBuilder),

Append a new Footer element

source

pub fn form<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut FormBuilder),

Append a new Form element

source

pub fn header<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut HeaderBuilder),

Append a new Header element

source

pub fn main<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut MainBuilder),

Append a new Main element

source

pub fn menu<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut MenuBuilder),

Append a new Menu element

source

pub fn navigation<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut NavigationBuilder),

Append a new Navigation element

source

pub fn ordered_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut OrderedListBuilder),

Append a new OrderedList element

source

pub fn paragraph<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ParagraphBuilder),

Append a new Paragraph element

source

pub fn preformatted_text<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut PreformattedTextBuilder),

Append a new PreformattedText element

source

pub fn section<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut SectionBuilder),

Append a new Section element

source

pub fn table<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut TableBuilder),

Append a new Table element

source

pub fn thematic_break<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut ThematicBreakBuilder),

Append a new ThematicBreak element

source

pub fn unordered_list<F>(&mut self, f: F) -> &mut Selfwhere F: FnOnce(&mut UnorderedListBuilder),

Append a new UnorderedList element

source

pub fn text(&mut self, s: impl Into<Cow<'static, str>>) -> &mut Self

Append a new text element.

source

pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the accesskey attribute

source

pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self

Set the value of the autocapitalize attribute

source

pub fn autofocus(&mut self, value: bool) -> &mut Self

Set the value of the autofocus attribute

source

pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the class attribute

source

pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self

Set the value of the contenteditable attribute

source

pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the dir attribute

source

pub fn draggable(&mut self, value: bool) -> &mut Self

Set the value of the draggable attribute

source

pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self

Set the value of the enterkeyhint attribute

source

pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the exportparts attribute

source

pub fn hidden(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the hidden attribute

source

pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the id attribute

source

pub fn inert(&mut self, value: bool) -> &mut Self

Set the value of the inert attribute

source

pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the inputmode attribute

source

pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the is attribute

source

pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemid attribute

source

pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemprop attribute

source

pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemref attribute

source

pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemscope attribute

source

pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemtype attribute

source

pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the lang attribute

source

pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the nonce attribute

source

pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the part attribute

source

pub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the slot attribute

source

pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the spellcheck attribute

source

pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the style attribute

source

pub fn tab_index(&mut self, value: i64) -> &mut Self

Set the value of the tabindex attribute

source

pub fn title(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the title attribute

source

pub fn translate(&mut self, value: bool) -> &mut Self

Set the value of the translate attribute

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.