pub struct EditorHitTest {
pub byte: usize,
}Expand description
Hit-test result in UTF-8 byte coordinates.
§Examples
use ailloli_ui_editor::EditorHitTest;
assert_eq!(EditorHitTest { byte: 4 }.byte, 4);Fields§
§byte: usizeClamped source-buffer UTF-8 byte offset.
Trait Implementations§
Source§impl Clone for EditorHitTest
impl Clone for EditorHitTest
Source§fn clone(&self) -> EditorHitTest
fn clone(&self) -> EditorHitTest
Returns a copy of the value. Read more
1.0.0 · 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 EditorHitTest
impl Debug for EditorHitTest
Source§impl PartialEq for EditorHitTest
impl PartialEq for EditorHitTest
impl Copy for EditorHitTest
impl Eq for EditorHitTest
impl StructuralPartialEq for EditorHitTest
Auto Trait Implementations§
impl Freeze for EditorHitTest
impl RefUnwindSafe for EditorHitTest
impl Send for EditorHitTest
impl Sync for EditorHitTest
impl Unpin for EditorHitTest
impl UnwindSafe for EditorHitTest
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.