Struct flipdot_testing::Address
source · pub struct Address(pub u16);
Expand description
The address of a sign, used to identify it on the bus.
§Examples
use flipdot_core::{Address, Data, Frame, MsgType};
// Create a frame addressed to sign 2.
let frame = Frame::new(Address(2), MsgType(1), Data::try_new(vec![1, 2])?);
Tuple Fields§
§0: u16
Trait Implementations§
source§impl PartialEq for Address
impl PartialEq for Address
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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