NavItemExt

Trait NavItemExt 

Source
pub trait NavItemExt {
    // Required method
    fn child(self, item: Element<Li>) -> Self;
}
Expand description

Wrapper to add nav items to a navbar.

This trait allows adding nav items to a ul element.

Required Methods§

Source

fn child(self, item: Element<Li>) -> Self

Add a nav item to this navbar.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NavItemExt for Element<Ul>

Source§

fn child(self, item: Element<Li>) -> Self

Implementors§