fn from_attr<C: HasDataLayout>(cx: C, ity: attr::IntType) -> Integer {
        let dl = cx.data_layout();

        match ity {
            attr::SignedInt(IntTy::I8) | attr::UnsignedInt(UintTy::U8) => I8,
            attr::SignedInt(IntTy::I16) | attr::UnsignedInt(UintTy::U16) => I16,
            attr::SignedInt(IntTy::I32) | attr::UnsignedInt(UintTy::U32) => I32,
            attr::SignedInt(IntTy::I64) | attr::UnsignedInt(UintTy::U64) => I64,
            attr::SignedInt(IntTy::I128) | attr::UnsignedInt(UintTy::U128) => I128,
            attr::SignedInt(IntTy::Isize) | attr::UnsignedInt(UintTy::Usize) => {
                dl.ptr_sized_integer()
            }
        }
    }
/// Get the Integer type from an attr::IntType.
Get the Integer type from an attr::IntType.
Get the Integer type from an attr :: IntType .
fn from_attr<C: HasDataLayout>(cx: C, ity: attr::IntType) -> Integer {
        let dl = cx.data_layout();
        match ity {
            attr::SignedInt(IntTy::I8) | attr::UnsignedInt(UintTy::U8) => I8,
            attr::SignedInt(IntTy::I16) | attr::UnsignedInt(UintTy::U16) => I16,
            attr::SignedInt(IntTy::I32) | attr::UnsignedInt(UintTy::U32) => I32,
            attr::SignedInt(IntTy::I64) | attr::UnsignedInt(UintTy::U64) => I64,
            attr::SignedInt(IntTy::I128) | attr::UnsignedInt(UintTy::U128) => I128,
            attr::SignedInt(IntTy::Isize) | attr::UnsignedInt(UintTy::Usize) => {
                dl.ptr_sized_integer()
            }
        }
    }
fn from_attr < C : HasDataLayout > ( cx : C , ity : attr :: IntType ) -> Integer { let dl = cx . data_layout ( ) ; match ity { attr :: SignedInt ( IntTy :: I8 ) | attr :: UnsignedInt ( UintTy :: U8 ) => I8 , attr :: SignedInt ( IntTy :: I16 ) | attr :: UnsignedInt ( UintTy :: U16 ) => I16 , attr :: SignedInt ( IntTy :: I32 ) | attr :: UnsignedInt ( UintTy :: U32 ) => I32 , attr :: SignedInt ( IntTy :: I64 ) | attr :: UnsignedInt ( UintTy :: U64 ) => I64 , attr :: SignedInt ( IntTy :: I128 ) | attr :: UnsignedInt ( UintTy :: U128 ) => I128 , attr :: SignedInt ( IntTy :: Isize ) | attr :: UnsignedInt ( UintTy :: Usize ) => { dl . ptr_sized_integer ( ) } } }
Get the Integer type from an attr::IntType.
Get the Integer type from an attr :: IntType .
cx
C
ity
attr::IntType
cx
C
ity
attr::IntType