pub struct EuvTocProps {
pub title: &'static str,
pub items: &'static [EuvTocItem],
}Expand description
Props for the euv_toc component.
Fields§
§title: &'static strThe list title (for example On this page).
items: &'static [EuvTocItem]The anchor items.
Implementations§
Source§impl EuvTocProps
impl EuvTocProps
pub fn get_title(&self) -> &'static str
pub fn get_mut_title(&mut self) -> &mut &'static str
pub fn set_title(&mut self, val: &'static str) -> &mut Self
pub fn get_items(&self) -> &'static [EuvTocItem]
pub fn get_mut_items(&mut self) -> &mut &'static [EuvTocItem]
pub fn set_items(&mut self, val: &'static [EuvTocItem]) -> &mut Self
Source§impl EuvTocProps
impl EuvTocProps
pub fn new(title: &'static str, items: &'static [EuvTocItem]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EuvTocProps
impl RefUnwindSafe for EuvTocProps
impl Send for EuvTocProps
impl Sync for EuvTocProps
impl Unpin for EuvTocProps
impl UnsafeUnpin for EuvTocProps
impl UnwindSafe for EuvTocProps
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