pub struct OutlineItem {
pub heading: Heading,
pub children: Vec<OutlineItem>,
pub depth: usize,
}Expand description
大纲条目,用于构建页面标题的层级树结构
Fields§
§heading: Heading标题内容
children: Vec<OutlineItem>子标题列表
depth: usize当前深度(从 0 开始)
Implementations§
Trait Implementations§
Source§impl Clone for OutlineItem
impl Clone for OutlineItem
Source§fn clone(&self) -> OutlineItem
fn clone(&self) -> OutlineItem
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 moreAuto Trait Implementations§
impl Freeze for OutlineItem
impl RefUnwindSafe for OutlineItem
impl Send for OutlineItem
impl Sync for OutlineItem
impl Unpin for OutlineItem
impl UnsafeUnpin for OutlineItem
impl UnwindSafe for OutlineItem
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