ux-dx 0.2.1

3D Graphics Primitives for Angular Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

use crate::engine::d2::display::Sprite;

/// Defines an exported SWF symbol.

pub trait Symbol<T>: fmt::Debug
where
    T: AsRef<Sprite>,
{
    /// The name of this symbol.
    fn name(&self) -> Option<String>;

    /// Instantiate a sprite that displays this symbol.
    fn create_sprite(&self) -> T;
}