Skip to main content

stratum_core/
props.rs

1/// Marker trait for component property types.
2///
3/// All component props must be `Clone + PartialEq + 'static`.
4/// This trait is automatically implemented for any type meeting these bounds.
5pub trait Props: Clone + PartialEq + 'static {}
6
7/// Blanket impl: any type satisfying the bounds is valid as Props.
8impl<T: Clone + PartialEq + 'static> Props for T {}