pub struct Section<'a> {
pub heading: Heading,
pub content: String,
pub children: RefCell<Vec<Rc<Section<'a>>>>,
}
Expand description
A Section
is a Heading
and some optional Content
. A Document
is
composed of many Section
s.
Fields§
§heading: Heading
§content: String
§children: RefCell<Vec<Rc<Section<'a>>>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Section<'a>
impl<'a> !RefUnwindSafe for Section<'a>
impl<'a> !Send for Section<'a>
impl<'a> !Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> !UnwindSafe for Section<'a>
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