wrend 0.3.6

A WebGL2 rendering library for Rust/Wasm & JS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use wasm_bindgen::prelude::wasm_bindgen;

use super::{id::Id, id_name::IdName};

/// Default ID that can be used when no id has been specified by the consuming application
#[wasm_bindgen]
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default)]
pub struct IdDefault;

impl Id for IdDefault {}

impl IdName for IdDefault {
    fn name(&self) -> String {
        String::from("id_default")
    }
}