pub fn is_uint_or_uint_vector(&self, context: &Context) -> bool {
        let mut ty = *self;

        if ty.is_vector(context) {
            ty = ty.get_element(context, 0);
        }

        ty.is_uint(context)
    }
/// Checks whether a type is an unsigned integer type, or a vector of it.
///
/// # 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 bool_ty = context.get_bool_type();
/// let is_uint = u32_ty.is_uint_or_uint_vector(&context);
/// let is_vector_uint = vec_ty.is_uint_or_uint_vector(&context);
/// # assert!(is_uint);
/// # assert!(is_vector_uint);
/// # assert!(!bool_ty.is_uint_or_uint_vector(&context));
/// ```
Checks whether a type is an unsigned integer type, or a vector of it.
Checks whether a type is an unsigned integer type or a vector of it .
pub fn is_uint_or_uint_vector(&self, context: &Context) -> bool {
        let mut ty = *self;
        if ty.is_vector(context) {
            ty = ty.get_element(context, 0);
        }
        ty.is_uint(context)
    }
pub fn is_uint_or_uint_vector ( & self , context : & Context ) -> bool { let mut ty = * self ; if ty . is_vector ( context ) { ty = ty . get_element ( context , 0 ) ; } ty . is_uint ( context ) }
Checks whether a type is an unsigned integer type, or a vector of it.
Checks whether a type is an unsigned integer type or a vector of it .
&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);
None
let bool_ty = context.get_bool_type();
let is_uint = u32_ty.is_uint_or_uint_vector(&context);
let is_vector_uint = vec_ty.is_uint_or_uint_vector(&context).
let is_uint = u32_ty . is_uint_or_uint_vector ( &context ) ; let is_vector_uint = vec_ty . is_uint_or_uint_vector ( &context ) .
assert!(is_uint);
None
assert!(is_vector_uint);
None
assert!(!bool_ty.is_uint_or_uint_vector(&context));
None