pub struct Segments {
pub segments: [u8; 4],
pub brightness: u8,
pub colon: bool,
}
Fields§
§segments: [u8; 4]
§brightness: u8
§colon: bool
Trait Implementations§
source§impl FromByteSlice for Segments
impl FromByteSlice for Segments
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> Segments
fn from_le_byte_slice(bytes: &[u8]) -> Segments
Deserialize the implementing type from a byte slice.
source§impl PartialEq for Segments
impl PartialEq for Segments
impl Copy for Segments
impl Eq for Segments
impl StructuralPartialEq for Segments
Auto Trait Implementations§
impl RefUnwindSafe for Segments
impl Send for Segments
impl Sync for Segments
impl Unpin for Segments
impl UnwindSafe for Segments
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more