pub struct Suggestion {
pub content: StyledBuffer,
pub span: Span,
}Expand description
Suggestion returned by the Completer
Fields§
§content: StyledBufferSuggestion content and styles
span: SpanReplacement span
Trait Implementations§
Source§impl ListView<Suggestion> for DropDownListView
impl ListView<Suggestion> for DropDownListView
fn render(&mut self) -> Result<()>
fn clear(&self) -> Result<()>
fn set_visibility(&mut self, visible: bool)
fn is_visible(&self) -> bool
fn set_focus_position(&mut self, position: i64)
fn set_focus_style(&mut self, style: Style)
fn focus_next(&mut self)
fn focus_previous(&mut self)
fn clear_focus(&mut self)
fn reset(&mut self)
fn set_elements(&mut self, elements: &mut Vec<Suggestion>)
fn clear_elements(&mut self)
fn selected_element(&self) -> Option<&Suggestion>
fn is_empty(&self) -> bool
fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnwindSafe for Suggestion
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