Struct mg::completion::completion_view::CompletionView
source · pub struct CompletionView { /* private fields */ }
Trait Implementations§
source§impl Update for CompletionView
impl Update for CompletionView
§type ModelParam = HashMap<&'static str, Box<dyn Completer + 'static, Global>, RandomState>
type ModelParam = HashMap<&'static str, Box<dyn Completer + 'static, Global>, RandomState>
The type of the parameter of the model() function used to initialize the model.
source§fn subscriptions(&mut self, _relm: &Relm<Self>)
fn subscriptions(&mut self, _relm: &Relm<Self>)
Connect the subscriptions.
Subscriptions are
Future
/Stream
that are spawn when the object is created.source§impl Widget for CompletionView
impl Widget for CompletionView
A widget to show completions for the command entry.
source§fn init_view(&mut self)
fn init_view(&mut self)
Update the view after it is initially created.
This method is only useful when using the
#[widget]
attribute, because when not using it,
you can use the view()
method instead.§type Root = ScrolledWindow
type Root = ScrolledWindow
The type of the root widget.
source§fn on_add<W>(&self, _parent: W)where
W: IsA<Widget> + IsA<Object>,
fn on_add<W>(&self, _parent: W)where W: IsA<Widget> + IsA<Object>,
Method called when the widget is added to its parent.
This is currently only used to set the child properties of a widget as relm widget could
have child properties and we don’t know its parent when it is defined. Thus, we call
on_add() when it is added to its parent to set the child properties.
Auto Trait Implementations§
impl !RefUnwindSafe for CompletionView
impl !Send for CompletionView
impl !Sync for CompletionView
impl Unpin for CompletionView
impl !UnwindSafe for CompletionView
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