pub struct TextFieldLine {
pub hard_line: usize,
pub start: usize,
pub end: usize,
}Expand description
一条视觉行(soft wrap 后)
Fields§
§hard_line: usize所属硬行(按 \n 拆分)
start: usize在 value 中的绝对字节范围 [start, end)(不含换行符)
end: usizeTrait Implementations§
Source§impl Clone for TextFieldLine
impl Clone for TextFieldLine
impl Copy for TextFieldLine
Source§impl Debug for TextFieldLine
impl Debug for TextFieldLine
impl Eq for TextFieldLine
Source§impl PartialEq for TextFieldLine
impl PartialEq for TextFieldLine
impl StructuralPartialEq for TextFieldLine
Auto Trait Implementations§
impl Freeze for TextFieldLine
impl RefUnwindSafe for TextFieldLine
impl Send for TextFieldLine
impl Sync for TextFieldLine
impl Unpin for TextFieldLine
impl UnsafeUnpin for TextFieldLine
impl UnwindSafe for TextFieldLine
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.