rocketsplash-formats 0.2.2

Shared data types and serialization formats for Rocketsplash TUI animations
Documentation
// <FILE>crates/rocketsplash-formats/src/render_mode.rs</FILE>
// <DESC>Render mode for serialized font atlases</DESC>
// <VERS>VERSION: 1.1.0</VERS>
// <WCTX>Add octant rendering mode</WCTX>
// <CLOG>Add Octant variant for Unicode 16.0 octant character support.</CLOG>

use serde::{Deserialize, Serialize};

/// Render mode used during export.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub enum RenderMode {
    Braille,
    Block,
    /// Octant block elements (2x4 solid blocks, requires Unicode 16.0)
    Octant,
}

impl Default for RenderMode {
    fn default() -> Self {
        Self::Braille
    }
}

// <FILE>crates/rocketsplash-formats/src/render_mode.rs</FILE>
// <VERS>END OF VERSION: 1.1.0</VERS>