Build an address from an array. `address[0]` will be the MSB and `address[5]` the LSB. # Example ``` # use btleplug::api::BDAddr; let addr: BDAddr = [0x2A, 0xCC, 0x00, 0x34, 0xFA, 0x00].into(); assert_eq!("2A:CC:00:34:FA:00", addr.to_string()); ```
(address: [u8; 6])
| 72 | /// assert_eq!("2A:CC:00:34:FA:00", addr.to_string()); |
| 73 | /// ``` |
| 74 | fn from(address: [u8; 6]) -> Self { |
| 75 | Self { address } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | impl From<BDAddr> for [u8; 6] { |
nothing calls this directly
no test coverage detected