pub struct SectionEntry {
pub level: usize,
pub path: String,
pub text: String,
pub style: &'static str,
pub ordinal: usize,
pub unique: bool,
pub has_body: bool,
pub subsections: usize,
}Expand description
One addressable section, as the model sees it in the outline.
Unlike list_tables and list_lists this does NOT withhold the content
being addressed — the heading text is the address, so hiding it would leave
nothing to address with. What it withholds is every section’s body, which is
the part an edit supplies.
Fields§
§level: usize§path: String§text: String§style: &'static str§ordinal: usize§unique: boolWhether the path is enough on its own. Anything false here is a section the model must pass an ordinal for, and the outline is where it finds that out — not the error message.
has_body: bool§subsections: usizeTrait Implementations§
Source§impl Clone for SectionEntry
impl Clone for SectionEntry
Source§fn clone(&self) -> SectionEntry
fn clone(&self) -> SectionEntry
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 moreSource§impl Debug for SectionEntry
impl Debug for SectionEntry
impl Eq for SectionEntry
Source§impl PartialEq for SectionEntry
impl PartialEq for SectionEntry
impl StructuralPartialEq for SectionEntry
Auto Trait Implementations§
impl Freeze for SectionEntry
impl RefUnwindSafe for SectionEntry
impl Send for SectionEntry
impl Sync for SectionEntry
impl Unpin for SectionEntry
impl UnsafeUnpin for SectionEntry
impl UnwindSafe for SectionEntry
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