nexus-stratum-core 0.1.0

Core traits and types for NexusStratum UI component library
Documentation
1
2
3
4
5
6
7
8
/// Marker trait for component property types.
///
/// All component props must be `Clone + PartialEq + 'static`.
/// This trait is automatically implemented for any type meeting these bounds.
pub trait Props: Clone + PartialEq + 'static {}

/// Blanket impl: any type satisfying the bounds is valid as Props.
impl<T: Clone + PartialEq + 'static> Props for T {}