pub struct App;Expand description
Builder for creating and running programs.
Implementations§
Source§impl App
impl App
Sourcepub fn new<M: Model>(model: M) -> AppBuilder<M>
pub fn new<M: Model>(model: M) -> AppBuilder<M>
Create a new app builder with the given model.
Sourcepub fn fullscreen<M: Model>(model: M) -> AppBuilder<M>
pub fn fullscreen<M: Model>(model: M) -> AppBuilder<M>
Create a fullscreen app.
Sourcepub fn inline<M: Model>(model: M, height: u16) -> AppBuilder<M>
pub fn inline<M: Model>(model: M, height: u16) -> AppBuilder<M>
Create an inline app with the given height.
Sourcepub fn inline_auto<M: Model>(
model: M,
min_height: u16,
max_height: u16,
) -> AppBuilder<M>
pub fn inline_auto<M: Model>( model: M, min_height: u16, max_height: u16, ) -> AppBuilder<M>
Create an inline app with automatic UI height.
Sourcepub fn string_model<S: StringModel>(
model: S,
) -> AppBuilder<StringModelAdapter<S>>
pub fn string_model<S: StringModel>( model: S, ) -> AppBuilder<StringModelAdapter<S>>
Create a fullscreen app from a StringModel.
This wraps the string model in a StringModelAdapter
so that view_string() output is rendered through the standard kernel pipeline.
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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