#[repr(u32)]pub enum Tag {
Show 30 variants
Cb = 1,
Cf = 2,
Fl = 4,
Fo = 8,
G = 16,
Hc = 32,
Jl = 64,
Jp = 128,
Ms = 256,
Mv = 512,
Nl = 1_024,
Np = 2_048,
Pt = 4_096,
Sc = 8_192,
F1 = 16_384,
F2 = 32_768,
F3 = 65_536,
F4 = 131_072,
F5 = 262_144,
F6 = 524_288,
F7 = 1_048_576,
F8 = 2_097_152,
F9 = 4_194_304,
F10 = 8_388_608,
F11 = 16_777_216,
F12 = 33_554_432,
F13 = 67_108_864,
Tr = 134_217_728,
Cr = 268_435_456,
Pb = 536_870_912,
}Expand description
MULTI tag
Tags are MULTI markup enclosed in square brackets, such as [nl].
Variants§
Cb = 1
[cb…]: Color — Background
Cf = 2
[cf…]: Color — Foreground
Fl = 4
[fl…]: Flash
Fo = 8
[fo…]: Font
G = 16
[g…]: Graphic
Hc = 32
[hc…]: Hexadecimal Character
Jl = 64
[jl…]: Justification — Line
Jp = 128
[jp…]: Justification — Page
Ms = 256
[ms…]: Manufacturer Specific
Mv = 512
[mv…]: Moving Text
Nl = 1_024
[nl…]: New Line
Np = 2_048
[np]: New Page
Pt = 4_096
[pt…]: Page Time
Sc = 8_192
[sc…]: Spacing Character
F1 = 16_384
[f1,…]: Field 1 (Local time — 12 hour)
F2 = 32_768
[f2,…]: Field 2 (Local time — 24 hour)
F3 = 65_536
[f3,…]: Field 3 (Ambient temperature — Celsius)
F4 = 131_072
[f4,…]: Field 4 (Ambient temperature — Fahrenheit)
F5 = 262_144
[f5,…]: Field 5 (Speed — km/h, from dmsCurrentSpeed)
F6 = 524_288
[f6,…]: Field 6 (Speed — mph, from dmsCurrentSpeed)
F7 = 1_048_576
[f7,…]: Field 7 (Day of week)
F8 = 2_097_152
[f8,…]: Field 8 (Day of month)
F9 = 4_194_304
[f9,…]: Field 9 (Month of year — 2 digits)
F10 = 8_388_608
[f10,…]: Field 10 (Year — 2 digits)
F11 = 16_777_216
[f11,…]: Field 11 (Year — 4 digits)
F12 = 33_554_432
[f12,…]: Field 12 (Local time — 12 hour AM/PM)
F13 = 67_108_864
[f13,…]: Field 13 (Local time — 12 hour am/pm)
Tr = 134_217_728
[tr…]: Text Rectangle
Cr = 268_435_456
[cr…]: Color Rectangle
Pb = 536_870_912
[pb…]: Page Background
Trait Implementations§
Source§impl BitFlag for Tag
impl BitFlag for Tag
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read more