pub enum QueryValue {
RichSelection(Box<RichSnapshot>),
FileBytes(Box<FileChunk>),
FilePreview(Option<Box<FilePreview>>),
ScrollMetrics(ScrollMetrics),
Focus(bool),
Bounds(Rect),
Scroll {
x: f64,
y: f64,
},
Selection {
start: usize,
end: usize,
},
}Variants§
RichSelection(Box<RichSnapshot>)
FileBytes(Box<FileChunk>)
FilePreview(Option<Box<FilePreview>>)
ScrollMetrics(ScrollMetrics)
Focus(bool)
Bounds(Rect)
Scroll
Selection
UTF-16 code-unit offsets, matching Web text controls. Native adapters must convert their engine’s byte/scalar/grapheme offsets at this boundary.
Trait Implementations§
Source§impl Clone for QueryValue
impl Clone for QueryValue
Source§impl Debug for QueryValue
impl Debug for QueryValue
Source§impl PartialEq for QueryValue
impl PartialEq for QueryValue
impl StructuralPartialEq for QueryValue
Auto Trait Implementations§
impl !Send for QueryValue
impl !Sync for QueryValue
impl Forget for QueryValue
impl Freeze for QueryValue
impl Move for QueryValue
impl RefUnwindSafe for QueryValue
impl Unpin for QueryValue
impl UnsafeUnpin for QueryValue
impl UnwindSafe for QueryValue
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