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§
Source§impl Clone for EuvTocProps
impl Clone for EuvTocProps
Source§fn clone(&self) -> EuvTocProps
fn clone(&self) -> EuvTocProps
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 EuvTocProps
Source§impl Debug for EuvTocProps
impl Debug for EuvTocProps
Source§impl Default for EuvTocProps
impl Default for EuvTocProps
Source§fn default() -> EuvTocProps
fn default() -> EuvTocProps
Returns the “default value” for a type. Read more
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