#[repr(transparent)]
pub struct Attribute(u8);
Expand description
Defines the style a cga character including its background and foreground colors.
Creates a new default initialized bitfield.
Foreground color of the character
Bits: 0..4
Foreground color of the character
Bits: 0..4
Foreground color of the character
Bits: 0..4
Background color
Bits: 4..7
Background color
Bits: 4..7
Background color
Bits: 4..7
If the character should blink (might not work in some cases)
Bits: 7..8
If the character should blink (might not work in some cases)
Bits: 7..8
If the character should blink (might not work in some cases)
Bits: 7..8
Construct an attribute with the given foreground and background colors.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.