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 QueryValuewhere
*const RichSnapshot is !null: Freeze,
PhantomData<RichSnapshot>: Freeze,
*const FileChunk is !null: Freeze,
PhantomData<FileChunk>: Freeze,
*const FilePreview is !null: Freeze,
PhantomData<FilePreview>: Freeze,
impl Move for QueryValue
impl RefUnwindSafe for QueryValue
impl Unpin for QueryValue
impl UnsafeUnpin for QueryValuewhere
*const RichSnapshot is !null: UnsafeUnpin,
PhantomData<RichSnapshot>: UnsafeUnpin,
*const FileChunk is !null: UnsafeUnpin,
PhantomData<FileChunk>: UnsafeUnpin,
*const FilePreview is !null: UnsafeUnpin,
PhantomData<FilePreview>: UnsafeUnpin,
impl UnwindSafe for QueryValuewhere
BoxRaw<RichSnapshot>: UnwindSafe,
BoxRaw<FileChunk>: UnwindSafe,
BoxRaw<FilePreview>: UnwindSafe,
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