pub struct Widget { /* private fields */ }Expand description
One compiled, typed widget.
Implementations§
Source§impl Widget
impl Widget
Sourcepub fn parse(platform: Platform, f: &ItemFn) -> Result<Self>
pub fn parse(platform: Platform, f: &ItemFn) -> Result<Self>
Parses a declaration and rejects runtime UI and unsupported field expressions.
Sourcepub fn rust_function(&self, f: ItemFn) -> TokenStream
pub fn rust_function(&self, f: ItemFn) -> TokenStream
Produces the Rust function that validates field types and serializes the model for the host.
Auto Trait Implementations§
impl !Send for Widget
impl !Sync for Widget
impl Forget for Widget
impl Freeze for Widget
impl Move for Widget
impl RefUnwindSafe for Widget
impl Unpin for Widget
impl UnsafeUnpin for Widget
impl UnwindSafe for Widget
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