pub struct GutterResponse {
pub response: Response,
pub current_highlight: Option<usize>,
pub total_highlights: usize,
}Expand description
Response from Context::scrollable_with_gutter.
Wraps the Response for the scrollable region plus search-result
metadata: the index of the currently focused highlight (if any) and the
total count of registered highlights.
Fields§
§response: ResponseThe scrollable region’s interaction response.
current_highlight: Option<usize>Index of the currently focused highlight, if any.
total_highlights: usizeTotal number of active highlights.
Trait Implementations§
Source§impl Clone for GutterResponse
impl Clone for GutterResponse
Source§fn clone(&self) -> GutterResponse
fn clone(&self) -> GutterResponse
Returns a duplicate 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 GutterResponse
impl Debug for GutterResponse
Source§impl Default for GutterResponse
impl Default for GutterResponse
Source§fn default() -> GutterResponse
fn default() -> GutterResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GutterResponse
impl RefUnwindSafe for GutterResponse
impl Send for GutterResponse
impl Sync for GutterResponse
impl Unpin for GutterResponse
impl UnsafeUnpin for GutterResponse
impl UnwindSafe for GutterResponse
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