Lines Matching refs:ExtMode
775 pub enum ExtMode { enum
788 impl ExtMode { impl
790 pub(crate) fn new(from_bits: u16, to_bits: u16) -> Option<ExtMode> { in new() argument
792 (1, 8) | (1, 16) | (1, 32) | (8, 16) | (8, 32) => Some(ExtMode::BL), in new()
793 (1, 64) | (8, 64) => Some(ExtMode::BQ), in new()
794 (16, 32) => Some(ExtMode::WL), in new()
795 (16, 64) => Some(ExtMode::WQ), in new()
796 (32, 64) => Some(ExtMode::LQ), in new()
802 impl fmt::Debug for ExtMode { implementation
805 ExtMode::BL => "bl", in fmt()
806 ExtMode::BQ => "bq", in fmt()
807 ExtMode::WL => "wl", in fmt()
808 ExtMode::WQ => "wq", in fmt()
809 ExtMode::LQ => "lq", in fmt()
815 impl fmt::Display for ExtMode { implementation