pub struct EuvNavbarItem {
pub text: &'static str,
pub link: &'static str,
}Expand description
One link entry of the euv_navbar top navigation bar.
Internal links (hash routes) highlight when their path prefix matches the
current route; links starting with http open in a new tab.
Fields§
§text: &'static strThe display text.
link: &'static strThe link target (hash route path or external URL).
Implementations§
pub fn get_text(&self) -> &'static str
pub fn get_mut_text(&mut self) -> &mut &'static str
pub fn set_text(&mut self, val: &'static str) -> &mut Self
pub fn get_link(&self) -> &'static str
pub fn get_mut_link(&mut self) -> &mut &'static str
pub fn set_link(&mut self, val: &'static str) -> &mut Self
Trait Implementations§
Source§fn clone(&self) -> EuvNavbarItem
fn clone(&self) -> EuvNavbarItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> EuvNavbarItem
fn default() -> EuvNavbarItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more