[−][src]Struct uniui_build::WasmBuilder
Builds ui-crates into WASM modules.
Implementations
impl WasmBuilder
[src]
pub fn for_framework(framework: Framework) -> Self
[src]
Creates new builder for Framework
pub fn add_path(&mut self, path: &str, crate_name: &str)
[src]
Specify path to the page and module_name which implements the page
- The path should be in format "/a/b/"
- The crate_name should be the same as the crate name in [build-dependencies] secion of Cargo.toml
pub fn add_page<T>(
&mut self,
page: &'static dyn UiPage<Data = T>,
crate_name: &str
)
[src]
&mut self,
page: &'static dyn UiPage<Data = T>,
crate_name: &str
)
Specify UiPage and module_name which implements the page
The crate_name should be the same as the crate name in [build-dependencies] secion of Cargo.toml
pub fn default_css_theme(&mut self, theme: String)
[src]
Setup css theme for the app.
We recommend to check uniui_theme
crate for that
pub fn execute(self)
[src]
Builds all added crates.
You can access the results via
mod generated { include!(concat!(env!("OUT_DIR"), "/uni_build_generated.rs")); }
Please refer to particular Framework's documentation for more information how it may be used.
Trait Implementations
impl Clone for WasmBuilder
[src]
fn clone(&self) -> WasmBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmBuilder
impl Send for WasmBuilder
impl Sync for WasmBuilder
impl Unpin for WasmBuilder
impl UnwindSafe for WasmBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,