rocketsplash-formats 0.2.2

Shared data types and serialization formats for Rocketsplash TUI animations
Documentation
// <FILE>crates/rocketsplash-formats/src/style_flags.rs</FILE>
// <DESC>Style flags describing available font variants</DESC>
// <VERS>VERSION: 1.0.0</VERS>
// <WCTX>Runtime library implementation</WCTX>
// <CLOG>Introduce StyleFlags bitflags for font metadata</CLOG>

use bitflags::bitflags;
use serde::{Deserialize, Serialize};

bitflags! {
    #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
    pub struct StyleFlags: u8 {
        const BOLD = 0b0001;
        const ITALIC = 0b0010;
        const BOLD_ITALIC = 0b0100;
        const REVERSE = 0b1000;
    }
}

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