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
/// Useful for Ids that need a literal String representation (such as uniforms)
pub trait IdName {
    fn name(&self) -> String;
}

impl IdName for String {
    fn name(&self) -> String {
        self.to_owned()
    }
}

impl IdName for &'static str {
    fn name(&self) -> String {
        self.to_string()
    }
}