pub struct MenuView {
pub items: Vec<MenuItem>,
pub selected: usize,
pub query: String,
}Expand description
The rows and state of the open menu, its anchor rectangle comes from Editor::render.
Fields§
§items: Vec<MenuItem>The visible rows, filtered by query.
selected: usizeThe highlighted row index.
query: StringThe typed filter.
Trait Implementations§
impl Eq for MenuView
impl StructuralPartialEq for MenuView
Auto Trait Implementations§
impl Freeze for MenuView
impl RefUnwindSafe for MenuView
impl Send for MenuView
impl Sync for MenuView
impl Unpin for MenuView
impl UnsafeUnpin for MenuView
impl UnwindSafe for MenuView
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