pub struct SectionEdit {
pub body: String,
pub level: u8,
pub line: u32,
}Expand description
The result of a section edit: the new body plus where the edited (or
created) section sits — line is 1-based within the body, the
[parser::Section::line] frame.
Fields§
§body: StringThe whole new body.
level: u8The edited section’s heading level (2–6).
line: u32The edited section’s heading line, 1-based within the body.
Trait Implementations§
Source§impl Clone for SectionEdit
impl Clone for SectionEdit
Source§fn clone(&self) -> SectionEdit
fn clone(&self) -> SectionEdit
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 SectionEdit
impl Debug for SectionEdit
impl Eq for SectionEdit
Source§impl PartialEq for SectionEdit
impl PartialEq for SectionEdit
impl StructuralPartialEq for SectionEdit
Auto Trait Implementations§
impl Freeze for SectionEdit
impl RefUnwindSafe for SectionEdit
impl Send for SectionEdit
impl Sync for SectionEdit
impl Unpin for SectionEdit
impl UnsafeUnpin for SectionEdit
impl UnwindSafe for SectionEdit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.