pub trait TypedExt: Typed {
Show 29 methods
// Provided methods
fn size(&self, ctx: &Context) -> usize { ... }
fn size_bits(&self, ctx: &Context) -> usize { ... }
fn unpacked_size_bits(&self, ctx: &Context) -> usize { ... }
fn align(&self, ctx: &Context) -> usize { ... }
fn is_ptr(&self, ctx: &Context) -> bool { ... }
fn is_atomic(&self, ctx: &Context) -> bool { ... }
fn is_vector(&self, ctx: &Context) -> bool { ... }
fn is_vector_of_size(&self, ctx: &Context, size: usize) -> bool { ... }
fn is_immutable(&self, ctx: &Context) -> bool { ... }
fn vector_size(&self, ctx: &Context) -> usize { ... }
fn try_get_vector_size(&self, ctx: &Context) -> Option<usize> { ... }
fn packing_factor(&self, ctx: &Context) -> usize { ... }
fn scalar_ty(&self, ctx: &Context) -> TypeHandle { ... }
fn element_ty(&self, ctx: &Context) -> TypeHandle { ... }
fn unwrap_ptr(&self, ctx: &Context) -> TypeHandle { ... }
fn try_get_scalar_ty(&self, ctx: &Context) -> Option<TypeHandle> { ... }
fn try_get_scalar_elem_ty(&self, ctx: &Context) -> Option<TypeHandle> { ... }
fn is_index(&self, ctx: &Context) -> bool { ... }
fn is_int(&self, ctx: &Context) -> bool { ... }
fn is_signed_int(&self, ctx: &Context) -> bool { ... }
fn is_unsigned_int(&self, ctx: &Context) -> bool { ... }
fn is_int_of_width(&self, ctx: &Context, width: usize) -> bool { ... }
fn is_float64(&self, ctx: &Context) -> bool { ... }
fn is_float32(&self, ctx: &Context) -> bool { ... }
fn is_tfloat32(&self, ctx: &Context) -> bool { ... }
fn is_float16(&self, ctx: &Context) -> bool { ... }
fn is_bfloat16(&self, ctx: &Context) -> bool { ... }
fn is_float(&self, ctx: &Context) -> bool { ... }
fn is_bool(&self, ctx: &Context) -> bool { ... }
}Provided Methods§
fn size(&self, ctx: &Context) -> usize
fn size_bits(&self, ctx: &Context) -> usize
fn unpacked_size_bits(&self, ctx: &Context) -> usize
fn align(&self, ctx: &Context) -> usize
fn is_ptr(&self, ctx: &Context) -> bool
fn is_atomic(&self, ctx: &Context) -> bool
fn is_vector(&self, ctx: &Context) -> bool
fn is_vector_of_size(&self, ctx: &Context, size: usize) -> bool
fn is_immutable(&self, ctx: &Context) -> bool
fn vector_size(&self, ctx: &Context) -> usize
fn try_get_vector_size(&self, ctx: &Context) -> Option<usize>
fn packing_factor(&self, ctx: &Context) -> usize
fn scalar_ty(&self, ctx: &Context) -> TypeHandle
fn element_ty(&self, ctx: &Context) -> TypeHandle
fn unwrap_ptr(&self, ctx: &Context) -> TypeHandle
fn try_get_scalar_ty(&self, ctx: &Context) -> Option<TypeHandle>
fn try_get_scalar_elem_ty(&self, ctx: &Context) -> Option<TypeHandle>
fn is_index(&self, ctx: &Context) -> bool
fn is_int(&self, ctx: &Context) -> bool
fn is_signed_int(&self, ctx: &Context) -> bool
fn is_unsigned_int(&self, ctx: &Context) -> bool
fn is_int_of_width(&self, ctx: &Context, width: usize) -> bool
fn is_float64(&self, ctx: &Context) -> bool
fn is_float32(&self, ctx: &Context) -> bool
fn is_tfloat32(&self, ctx: &Context) -> bool
fn is_float16(&self, ctx: &Context) -> bool
fn is_bfloat16(&self, ctx: &Context) -> bool
fn is_float(&self, ctx: &Context) -> bool
fn is_bool(&self, ctx: &Context) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".