use-solid 0.0.1

SolidJS metadata primitives for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
use use_solid::{SolidComponentName, SolidPrimitiveKind, SolidSignalName};

fn main() -> Result<(), use_solid::SolidNameError> {
    let component = SolidComponentName::new("CounterPanel")?;
    let signal = SolidSignalName::new("count")?;

    assert_eq!(component.as_str(), "CounterPanel");
    assert_eq!(signal.as_str(), "count");
    assert_eq!(SolidPrimitiveKind::Signal.as_str(), "signal");
    Ok(())
}