pub struct PropSpec {
pub name: &'static str,
pub ts: String,
pub optional: bool,
pub doc: &'static str,
pub kind: PropKind,
pub decode: Option<PropDecode>,
}Expand description
One prop, for the glue and its declarations.
Fields§
§name: &'static strIts JS name (accessibilityLabel).
ts: StringIts TypeScript type.
optional: boolIt may be left out.
doc: &'static strDocumentation.
kind: PropKindWhat it is.
decode: Option<PropDecode>A value prop’s value from JS (None for slots, children and rows).
Trait Implementations§
Auto Trait Implementations§
impl Forget for PropSpec
impl Freeze for PropSpec
impl Move for PropSpec
impl RefUnwindSafe for PropSpec
impl Send for PropSpec
impl Sync for PropSpecwhere
RawVecInner: Sync,
impl Unpin for PropSpec
impl UnsafeUnpin for PropSpec
impl UnwindSafe for PropSpec
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