Feat: overall API updates

This commit is contained in:
Jonathan Kelley committed 2021-02-12 00:29:46 -05:00
1 parent 125f5426a4
commit f47651b32a
16 files changed
+234 -177

No files matched your search

+3 -5
View File
@@ -23,15 +23,13 @@ impl<P: Properties> Component for FC<P> {
/// The `Properties` trait defines any struct that can be constructed using a combination of default / optional fields.
/// Components take a "properties" object
pub trait Properties: 'static {
fn new() -> Self;
pub trait Properties {
fn call(&self, ptr: *const ()) {}
}
// Auto implement for no-prop components
impl Properties for () {
fn new() -> Self {
()
}
fn call(&self, ptr: *const ()) {}
}
#[cfg(test)]