lexical-ui 0.1.2

A Rust port of Lexical's model and headless packages, at parity with the JS implementation.
Documentation
1
2
3
4
5
6
7
8
//! `extension-core/safeCast.ts`.

/// `safeCast(value)`: `value`. JS uses it to give a config its type where
/// inference wouldn't; Rust infers it from the annotation, so this only
/// keeps ported code close to JS.
pub fn safe_cast<T>(value: T) -> T {
    value
}