pub struct Screens { /* private fields */ }Expand description
Keyed <module>/<area>/<name>.
Implementations§
Source§impl Screens
impl Screens
Sourcepub fn add_builtin(&mut self, files: &[(&str, File)]) -> Result<()>
pub fn add_builtin(&mut self, files: &[(&str, File)]) -> Result<()>
Skips keys the app already gave a template: that is how an app overrides a built-in screen.
Sourcepub fn describe_form<I: FormFields>(
&mut self,
key: &str,
form: &str,
) -> Result<()>
pub fn describe_form<I: FormFields>( &mut self, key: &str, form: &str, ) -> Result<()>
A development build gives them again whenever it rereads the file.
pub fn describe_forms(&mut self, forms: &[Form]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Screens
impl RefUnwindSafe for Screens
impl Send for Screens
impl Sync for Screens
impl Unpin for Screens
impl UnsafeUnpin for Screens
impl UnwindSafe for Screens
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