[−][src]Trait async_resol_vbus::ToPacketFieldId
A trait to get a PacketFieldId
for a given value.
Required methods
fn to_packet_field_id(&self) -> Result<PacketFieldId, Error>
Get the PacketFieldId
for a given value.
Implementations on Foreign Types
impl ToPacketFieldId for str
[src]
fn to_packet_field_id(&self) -> Result<PacketFieldId, Error>
[src]
Parse the string into a packet field ID tuple.
Examples
use resol_vbus::{PacketId, PacketFieldId, ToPacketFieldId}; assert_eq!(PacketFieldId(PacketId(0x11, 0x1213, 0x1415, 0x1718), "012_4_0"), "11_1213_1415_10_1718_012_4_0".to_packet_field_id().unwrap());