brink-format 0.0.7

Binary interface between brink compiler and runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bitflags::bitflags;

bitflags! {
    /// Flags controlling what the runtime counts for a container.
    #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
    pub struct CountingFlags: u8 {
        /// Track how many times this container has been visited.
        const VISITS          = 0x01;
        /// Track the turn number at which this container was last visited.
        const TURNS           = 0x02;
        /// Only count the visit/turn when the container is entered at its
        /// first line (not when re-entered mid-way).
        const COUNT_START_ONLY = 0x04;
    }
}