pub struct SectionMoveResult {
pub text: String,
pub new_heading_offset: usize,
}Expand description
Result of a section move operation.
Fields§
§text: StringNew canonical text after the sections are swapped.
new_heading_offset: usizeByte offset of the heading in the new text (for cursor repositioning).
Trait Implementations§
Source§impl Clone for SectionMoveResult
impl Clone for SectionMoveResult
Source§fn clone(&self) -> SectionMoveResult
fn clone(&self) -> SectionMoveResult
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 SectionMoveResult
impl Debug for SectionMoveResult
impl Eq for SectionMoveResult
Source§impl PartialEq for SectionMoveResult
impl PartialEq for SectionMoveResult
Source§fn eq(&self, other: &SectionMoveResult) -> bool
fn eq(&self, other: &SectionMoveResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SectionMoveResult
Auto Trait Implementations§
impl Freeze for SectionMoveResult
impl RefUnwindSafe for SectionMoveResult
impl Send for SectionMoveResult
impl Sync for SectionMoveResult
impl Unpin for SectionMoveResult
impl UnsafeUnpin for SectionMoveResult
impl UnwindSafe for SectionMoveResult
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