pub struct CompletionView { /* private fields */ }

Trait Implementations§

source§

impl Update for CompletionView

§

type Msg = Msg

The type of the messages sent to the update() method.
§

type Model = Model

The type of the model.
§

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 update(&mut self, msg: Msg)

Method called when a message is received from an event.
source§

fn model(relm: &Relm<Self>, completers: Completers) -> Model

Create the initial model.
source§

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

A widget to show completions for the command entry.

source§

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.
source§

fn view(relm: &Relm<Self>, __relm_model: Self::Model) -> Self

Create the initial view.
§

type Root = ScrolledWindow

The type of the root widget.
source§

fn root(&self) -> Self::Root

Get the root widget of the view.
source§

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.
source§

fn parent_id() -> Option<&'static str>

Get the parent ID. This is useful for custom Container implementation: when you implement the Container::add_widget(), you might want to insert widgets elsewhere depending of this id.
source§

fn run(model_param: Self::ModelParam) -> Result<(), BoolError>where Self: 'static,

Create the window from this widget and start the main loop.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.