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 Widgetwhere
NonZero<u32>: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
PhantomData<Rc<()>>: Freeze,
*const LeafNode<String, Field> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Field)>>: Freeze,
*const LeafNode<String, Node> is !null: Freeze,
PhantomData<Box<(String, Node)>>: Freeze,
impl Move for Widget
impl RefUnwindSafe for Widget
impl Unpin for Widget
impl UnsafeUnpin for Widgetwhere
NonZeroU32Inner: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
*const LeafNode<String, Field> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Field)>>: UnsafeUnpin,
*const LeafNode<String, Node> is !null: UnsafeUnpin,
PhantomData<Box<(String, Node)>>: UnsafeUnpin,
impl UnwindSafe for Widgetwhere
NonZero<u32>: UnwindSafe,
BoxRaw<str>: UnwindSafe,
ProcMacroAutoTraits: UnwindSafe,
BTreeMap<String, Field>: UnwindSafe,
BTreeMap<String, Node>: UnwindSafe,
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