Searched refs:newtype_enum (Results 1 – 24 of 24) sorted by relevance
74 …newtype_enum! { # [doc = " Baseboard Management Controller (BMC) host interface type."] pub enum B…363 …newtype_enum! { # [doc = " Whether the ATAPI device is primary or secondary."] pub enum PrimarySec…367 …newtype_enum! { # [doc = " Whether the ATAPI device is master or slave."] pub enum MasterSlave : u…371 …newtype_enum! { # [doc = " Origin of the source IP address."] pub enum Ipv4AddressOrigin : u8 => {…375 …newtype_enum! { # [doc = " Origin of the local IP address."] pub enum Ipv6AddressOrigin : u8 => { …383 …newtype_enum! { # [doc = " UART parity setting."] pub enum Parity : u8 => { # [doc = " Default par…387 …newtype_enum! { # [doc = " UART number of stop bits."] pub enum StopBits : u8 => { # [doc = " Defa…391 …newtype_enum! { # [doc = " iSCSI network protocol."] pub enum IscsiProtocol : u16 => { # [doc = " …399 …newtype_enum! { # [doc = " BluetoothLE address type."] pub enum BluetoothLeAddressType : u8 => { #…403 …newtype_enum! { # [doc = " Whether the address is IPv4 or IPv6."] pub enum DnsAddressType : u8 => …[all …]
6 newtype_enum! {52 newtype_enum! {195 newtype_enum! {214 newtype_enum! {
29 pub fn newtype_enum() -> DeriveInput { in newtype_enum() function71 let container = Container::from_derive_input(&source::newtype_enum()).unwrap(); in enum_newtype_or_unit()88 StructContainer::from_derive_input(&source::newtype_enum()).unwrap_err(); in struct_named()
11 newtype_enum! {38 newtype_enum! {
14 newtype_enum! {76 newtype_enum! {117 newtype_enum! {
5 newtype_enum! {29 newtype_enum! {
4 newtype_enum! {21 newtype_enum! {
4 newtype_enum! {
105 newtype_enum! {123 newtype_enum! {
82 newtype_enum! {160 newtype_enum! {
269 newtype_enum! {381 newtype_enum! {457 newtype_enum! {
5 newtype_enum! {
231 newtype_enum! {251 newtype_enum! {
27 newtype_enum! {
18 newtype_enum! {
44 macro_rules! newtype_enum { macro
3 newtype_enum! {
109 newtype_enum! {
149 newtype_enum! {
110 newtype_enum: Vec<String>, field460 newtype_enum, in builder_from_flags()614 for regex in newtype_enum { in builder_from_flags()615 builder = builder.newtype_enum(regex); in builder_from_flags()
357 …newtype_enum! { # [doc = " Baseboard Management Controller (BMC) host interface type."] pub enum B…2387 …newtype_enum! { # [doc = " Whether the ATAPI device is primary or secondary."] pub enum PrimarySec…2391 …newtype_enum! { # [doc = " Whether the ATAPI device is master or slave."] pub enum MasterSlave : u…2395 …newtype_enum! { # [doc = " Origin of the source IP address."] pub enum Ipv4AddressOrigin : u8 => {…2399 …newtype_enum! { # [doc = " Origin of the local IP address."] pub enum Ipv6AddressOrigin : u8 => { …2407 …newtype_enum! { # [doc = " UART parity setting."] pub enum Parity : u8 => { # [doc = " Default par…2411 …newtype_enum! { # [doc = " UART number of stop bits."] pub enum StopBits : u8 => { # [doc = " Defa…2426 …newtype_enum! { # [doc = " iSCSI network protocol."] pub enum IscsiProtocol : u16 => { # [doc = " …2434 …newtype_enum! { # [doc = " BluetoothLE address type."] pub enum BluetoothLeAddressType : u8 => { #…2438 …newtype_enum! { # [doc = " Whether the address is IPv4 or IPv6."] pub enum DnsAddressType : u8 => …[all …]
97 Rust `enum`s are not allowed; use the `bitflags!` or `newtype_enum!` macros
584 newtype_enum! {
433 pub fn newtype_enum<T: AsRef<str>>(mut self, arg: T) -> Builder {