1
Fork 0

Add a method to check if type is a CStr

This commit is contained in:
Celina G. Val 2023-12-15 13:18:41 -08:00
parent 3f39cae119
commit 86451badf1
4 changed files with 37 additions and 0 deletions

View file

@ -72,6 +72,9 @@ pub trait Context {
/// Returns whether this ADT is simd.
fn adt_is_simd(&self, def: AdtDef) -> bool;
/// Returns whether this definition is a C string.
fn adt_is_cstr(&self, def: AdtDef) -> bool;
/// Retrieve the function signature for the given generic arguments.
fn fn_sig(&self, def: FnDef, args: &GenericArgs) -> PolyFnSig;