rusvm 0.2.3

Solve SVM training problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(js_namespace = console)]
    pub fn log(value: &str);
}

#[macro_export]
/// Redefines `println` macro for wasm.
macro_rules! println {
    ($($t:tt)*) => (crate::console::log(&format_args!($($t)*).to_string()))
}