kithara-platform 0.0.1-alpha4

Cross-platform primitives (sync, time, thread) for native and wasm32.
Documentation
1
2
3
4
5
6
7
8
9
10
#![forbid(unsafe_code)]

//! Shared conversion traits used across the workspace.

/// Convert `value: T` into `Self` using extra runtime parameters `P` that a
/// plain [`From`]/[`Into`] cannot carry.
pub trait FromWithParams<T, P> {
    /// Build `Self` from `value` and the construction parameters `params`.
    fn build(value: T, params: P) -> Self;
}