pub struct EuvTocItem {
pub level: u8,
pub text: &'static str,
pub href: &'static str,
}Expand description
One entry of the euv_toc anchor list.
Fields§
§level: u8The heading level (levels deeper than 2 render indented).
text: &'static strThe display text.
href: &'static strThe full href (for hash routers typically #<route>#<anchor>).
Implementations§
Source§impl EuvTocItem
impl EuvTocItem
pub fn get_level(&self) -> u8
pub fn get_mut_level(&mut self) -> &mut u8
pub fn set_level(&mut self, val: u8) -> &mut Self
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_href(&self) -> &'static str
pub fn get_mut_href(&mut self) -> &mut &'static str
pub fn set_href(&mut self, val: &'static str) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvTocItem
impl Clone for EuvTocItem
Source§fn clone(&self) -> EuvTocItem
fn clone(&self) -> EuvTocItem
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 moreimpl Copy for EuvTocItem
Source§impl Debug for EuvTocItem
impl Debug for EuvTocItem
Source§impl Default for EuvTocItem
impl Default for EuvTocItem
Source§fn default() -> EuvTocItem
fn default() -> EuvTocItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvTocItem
impl RefUnwindSafe for EuvTocItem
impl Send for EuvTocItem
impl Sync for EuvTocItem
impl Unpin for EuvTocItem
impl UnsafeUnpin for EuvTocItem
impl UnwindSafe for EuvTocItem
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