// Copyright 2015 Sam Doshi (sam@metal-fish.co.uk)
//// Licensed under the MIT License <LICENSE or http://opensource.org/licenses/MIT>.
// This file may not be copied, modified, or distributed except according to those terms.
usetypes::U7;useutils::mask7;#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]pubenumManufacturer{
OneByte(U7),
ThreeByte(U7,U7,U7)}implManufacturer{pubfnto_u7s(&self)->Vec<U7>{matchself{&Manufacturer::OneByte(b)=>vec!(mask7(b)),&Manufacturer::ThreeByte(b1, b2, b3)=>vec!(mask7(b1),mask7(b2),mask7(b3))}}}