pub enum ElementContent {
Html {
tag: String,
children: Vec<Element>,
},
Link(NavLink),
Menu(Menu),
Toc,
Main,
}Variants§
Trait Implementations§
Source§impl Clone for ElementContent
impl Clone for ElementContent
Source§fn clone(&self) -> ElementContent
fn clone(&self) -> ElementContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementContent
impl Debug for ElementContent
Source§impl From<ElementContent> for Element
impl From<ElementContent> for Element
Source§fn from(content: ElementContent) -> Self
fn from(content: ElementContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElementContent
impl RefUnwindSafe for ElementContent
impl Send for ElementContent
impl Sync for ElementContent
impl Unpin for ElementContent
impl UnwindSafe for ElementContent
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