pub struct CustomProp {
pub name: &'static str,
pub id: u32,
pub jsx_names: &'static [&'static str],
pub lua_names: &'static [&'static str],
pub jsx: &'static str,
pub lua: &'static str,
pub c: &'static str,
pub odin: &'static str,
pub doc: &'static str,
}Expand description
A prop every binding handles by hand (a composite with real logic, or a constructor-order special), with its wire id so transports agree on identity and its per-binding spelling so the docs can say so.
Fields§
§name: &'static str§id: u32§jsx_names: &'static [&'static str]Every prop name a JSX view may write for it — the machine-readable
half of jsx, which is prose for the docs. A composite is spelled
differently in each binding (borderW here, border = {…} there),
so the two lists are separate; together with PROPS and an element’s
own props they are the whole allow-list a binding checks a view
against (see known_prop).
lua_names: &'static [&'static str]The same for a Lua node table.
jsx: &'static strHow JSX spells it.
lua: &'static strHow a Lua table spells it.
c: &'static strWhere it lands in C.
odin: &'static strWhere it lands in Odin (packages/odin): a Spec / Text_Style
field, or a kui. procedure for a window-level row. The Odin
generator checks every name here is one its package has.
doc: &'static strAuto Trait Implementations§
impl Freeze for CustomProp
impl RefUnwindSafe for CustomProp
impl Send for CustomProp
impl Sync for CustomProp
impl Unpin for CustomProp
impl UnsafeUnpin for CustomProp
impl UnwindSafe for CustomProp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.