Props

Trait Props 

Source
pub unsafe trait Props: Send + Sync { }
Expand description

组件属性 trait,所有可作为组件 props 的类型都需实现此 trait。

  • 需实现 Send + Sync。
  • 推荐使用 #[derive(Props)] 自动实现。

§Safety

实现者需保证类型安全和线程安全。

Implementors§

Source§

impl Props for NoProps

Source§

impl<'a> Props for ScrollBars<'a>

Source§

impl<'a> Props for ScrollViewProps<'a>

Source§

impl<'a> Props for BorderProps<'a>

Source§

impl<'a> Props for ContextProviderProps<'a>

Source§

impl<'a> Props for FragmentProps<'a>

Source§

impl<'a> Props for ModalProps<'a>

Source§

impl<'a> Props for ViewProps<'a>

Source§

impl<T> Props for StatefulWidgetAdapterProps<T>
where T: StatefulWidget + Sync + Send + 'static, T::State: Sync + Send + 'static,

Source§

impl<T> Props for WidgetAdapterProps<T>
where T: Widget + Sync + Send + 'static,