pub mod devstone;
pub mod gpt;
pub mod modeling;
pub mod simulation;
#[cfg(not(any(feature = "par_any", feature = "rt")))]
pub trait DynRef: 'static {}
#[cfg(any(feature = "par_any", feature = "rt"))]
pub trait DynRef: 'static + Sync + Send {}
#[cfg(not(any(feature = "par_any", feature = "rt")))]
impl<T: 'static + ?Sized> DynRef for T {}
#[cfg(any(feature = "par_any", feature = "rt"))]
impl<T: 'static + Sync + Send + ?Sized> DynRef for T {}
#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct Event(String, String);
impl Event {
pub fn new<S: Into<String>, T: Into<String>>(port: S, value: T) -> Self {
Self(port.into(), value.into())
}
#[inline]
pub fn port(&self) -> &str {
&self.0
}
#[inline]
pub fn value(&self) -> &str {
&self.1
}
}
impl std::fmt::Display for Event {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "({}, {})", self.port(), self.value())
}
}