Lines Matching refs:DeriveTrait
20 pub enum DeriveTrait { enum
66 derive_trait: DeriveTrait,
457 impl DeriveTrait { impl
460 DeriveTrait::Copy => ctx.no_copy_by_name(item), in not_by_name()
461 DeriveTrait::Debug => ctx.no_debug_by_name(item), in not_by_name()
462 DeriveTrait::Default => ctx.no_default_by_name(item), in not_by_name()
463 DeriveTrait::Hash => ctx.no_hash_by_name(item), in not_by_name()
464 DeriveTrait::PartialEqOrPartialOrd => { in not_by_name()
472 DeriveTrait::PartialEqOrPartialOrd => consider_edge_default, in consider_edge_comp()
482 DeriveTrait::PartialEqOrPartialOrd => consider_edge_default, in consider_edge_typeref()
489 DeriveTrait::PartialEqOrPartialOrd => consider_edge_default, in consider_edge_tmpl_inst()
501 DeriveTrait::Copy => true, in can_derive_large_array()
508 DeriveTrait::Copy => true, in can_derive_union()
515 DeriveTrait::Copy => false, in can_derive_compound_with_destructor()
522 DeriveTrait::Default => false, in can_derive_compound_with_vtable()
529 DeriveTrait::Copy | DeriveTrait::Debug => true, in can_derive_compound_forward_decl()
536 DeriveTrait::Copy | in can_derive_incomplete_array()
537 DeriveTrait::Hash | in can_derive_incomplete_array()
538 DeriveTrait::PartialEqOrPartialOrd => false, in can_derive_incomplete_array()
545 (DeriveTrait::Copy, _) | (DeriveTrait::Default, _) | (_, true) => { in can_derive_fnptr()
549 (DeriveTrait::Debug, false) => { in can_derive_fnptr()
562 DeriveTrait::PartialEqOrPartialOrd => { in can_derive_vector()
578 DeriveTrait::Default => { in can_derive_pointer()
592 (DeriveTrait::Default, TypeKind::Void) | in can_derive_simple()
593 (DeriveTrait::Default, TypeKind::NullPtr) | in can_derive_simple()
594 (DeriveTrait::Default, TypeKind::Enum(..)) | in can_derive_simple()
595 (DeriveTrait::Default, TypeKind::Reference(..)) | in can_derive_simple()
596 (DeriveTrait::Default, TypeKind::TypeParam) | in can_derive_simple()
597 (DeriveTrait::Default, TypeKind::ObjCInterface(..)) | in can_derive_simple()
598 (DeriveTrait::Default, TypeKind::ObjCId) | in can_derive_simple()
599 (DeriveTrait::Default, TypeKind::ObjCSel) => { in can_derive_simple()
603 (DeriveTrait::Default, TypeKind::UnresolvedTypeRef(..)) => { in can_derive_simple()
609 (DeriveTrait::Hash, TypeKind::Float(..)) | in can_derive_simple()
610 (DeriveTrait::Hash, TypeKind::Complex(..)) => { in can_derive_simple()
623 impl fmt::Display for DeriveTrait { implementation
626 DeriveTrait::Copy => "Copy", in fmt()
627 DeriveTrait::Debug => "Debug", in fmt()
628 DeriveTrait::Default => "Default", in fmt()
629 DeriveTrait::Hash => "Hash", in fmt()
630 DeriveTrait::PartialEqOrPartialOrd => "PartialEq/PartialOrd", in fmt()
638 type Extra = (&'ctx BindgenContext, DeriveTrait);
642 (ctx, derive_trait): (&'ctx BindgenContext, DeriveTrait), in new() argument