Skip to main content

Tag

Enum Tag 

Source
#[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 BitAnd for Tag

Source§

type Output = BitFlags<Tag>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitFlag for Tag

Source§

fn empty() -> BitFlags<Self>

Create a BitFlags with no flags set (in other words, with a value of 0). Read more
Source§

fn all() -> BitFlags<Self>

Create a BitFlags with all flags set. Read more
Source§

fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>

Create a BitFlags if the raw value provided does not contain any illegal flags. Read more
Source§

fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>

Create a BitFlags from an underlying bitwise value. If any invalid bits are set, ignore them. Read more
Source§

unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>

Create a BitFlags unsafely, without checking if the bits form a valid bit pattern for the type. Read more
Source§

impl BitOr for Tag

Source§

type Output = BitFlags<Tag>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitXor for Tag

Source§

type Output = BitFlags<Tag>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Clone for Tag

Source§

fn clone(&self) -> Tag

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Tag

Source§

impl Debug for Tag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Tag

Source§

impl Not for Tag

Source§

type Output = BitFlags<Tag>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl PartialEq for Tag

Source§

fn eq(&self, other: &Tag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RawBitFlags for Tag

Source§

const EMPTY: <Self as RawBitFlags>::Numeric = 0

A value with no bits set.
Source§

const DEFAULT: <Self as RawBitFlags>::Numeric = 0

The value used by the Default implementation. Equivalent to EMPTY, unless customized.
Source§

const ALL_BITS: <Self as RawBitFlags>::Numeric

A value with all flag bits set.
Source§

const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<Tag>"

The name of the type for debug formatting purposes. Read more
Source§

type Numeric = u32

The underlying integer type.
Source§

fn bits(self) -> <Self as RawBitFlags>::Numeric

Return the bits as a number type.
Source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnsafeUnpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.