X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=bindingstypes.py;fp=bindingstypes.py;h=44b4182eda41814785c219754e51db1891176dee;hb=d294ad273a3d99aa2857efb10b225a2e20c84a16;hp=edb19565140c0c435892615810e59986414b6778;hpb=99d1a3bd6dc5c7ed1499b30bfc2b4c66ffaf858a;p=ldk-java diff --git a/bindingstypes.py b/bindingstypes.py index edb19565..44b4182e 100644 --- a/bindingstypes.py +++ b/bindingstypes.py @@ -1,5 +1,5 @@ class TypeInfo: - def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, nonnull_ptr, var_name, arr_len, arr_access, subty=None): + def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, nonnull_ptr, var_name, arr_len, arr_access, subty=None, contains_trait=False): self.is_native_primitive = is_native_primitive self.rust_obj = rust_obj self.java_ty = java_ty @@ -16,6 +16,7 @@ class TypeInfo: self.subty = subty self.pass_by_ref = is_ptr self.requires_clone = None + self.contains_trait = contains_trait def get_full_rust_ty(self): ret = ""