Implement Program::load to specify startup Command
This commit is contained in:
parent
5a986897d2
commit
93ae790da1
8 changed files with 122 additions and 77 deletions
|
|
@ -362,7 +362,7 @@ pub type Result = std::result::Result<(), Error>;
|
|||
/// }
|
||||
/// ```
|
||||
pub fn run<State, Message>(
|
||||
title: &'static str,
|
||||
title: impl program::Title<State> + 'static,
|
||||
update: impl Fn(&mut State, Message) + 'static,
|
||||
view: impl for<'a> program::View<'a, State, Message> + 'static,
|
||||
) -> Result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue