pub fn is_integral(&self, context: &Context) -> bool {
        matches!(
            context.types[self.0],
            TypePayload::Int(_) | TypePayload::UInt(_)
        )
    }
/// Checks whether a type is an integral (signed or unsigned) type.
///
/// # Examples
///
/// ```
/// # use yair::*;
/// # let mut context = Context::new();
/// # let module = context.create_module().build();
/// # let u32_ty = context.get_uint_type(32);
/// # let vec_ty = context.get_vector_type(u32_ty, 4);
/// let is_integral = u32_ty.is_integral(&context);
/// # assert!(is_integral);
/// # assert!(!vec_ty.is_integral(&context));
/// ```
Checks whether a type is an integral (signed or unsigned) type.
Checks whether a type is an integral ( signed or unsigned ) type .
pub fn is_integral(&self, context: &Context) -> bool {
        matches!(
            context.types[self.0],
            TypePayload::Int(_) | TypePayload::UInt(_)
        )
    }
pub fn is_integral ( & self , context : & Context ) -> bool { matches ! ( context types [ self 0 ] TypePayload Int ( ) TypePayload UInt ( ) ) }
Checks whether a type is an integral (signed or unsigned) type.
Checks whether a type is an integral ( signed or unsigned ) type .
&self
context
&Context
&self
context
&Context
examples
None
use yair::*;
None
let mut context = context::new();
None
let module = context.create_module().build();
None
let u32_ty = context.get_uint_type(32);
None
let vec_ty = context.get_vector_type(u32_ty, 4);
let is_integral = u32_ty.is_integral(&context).
let is_integral = u32_ty . is_integral ( &context ) .
assert!(is_integral);
None
assert!(!vec_ty.is_integral(&context));
None