pub struct AutoWrapBreak {
pub start: usize,
pub end: usize,
pub replacement: String,
}Expand description
Where auto-wrap should break the line being typed on, and what the carried remainder needs in front of it.
Byte offsets into the line, not the buffer — the host adds the row.
Fields§
§start: usizeStart of the whitespace run being replaced by the newline.
end: usizeEnd of that run — the first byte of the word moving down.
replacement: StringText to splice in: a newline plus the continuation prefix.
Trait Implementations§
Source§impl Clone for AutoWrapBreak
impl Clone for AutoWrapBreak
Source§fn clone(&self) -> AutoWrapBreak
fn clone(&self) -> AutoWrapBreak
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 AutoWrapBreak
impl Debug for AutoWrapBreak
impl Eq for AutoWrapBreak
Source§impl PartialEq for AutoWrapBreak
impl PartialEq for AutoWrapBreak
impl StructuralPartialEq for AutoWrapBreak
Auto Trait Implementations§
impl Freeze for AutoWrapBreak
impl RefUnwindSafe for AutoWrapBreak
impl Send for AutoWrapBreak
impl Sync for AutoWrapBreak
impl Unpin for AutoWrapBreak
impl UnsafeUnpin for AutoWrapBreak
impl UnwindSafe for AutoWrapBreak
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.