Home
last modified time | relevance | path

Searched refs:is_c (Results 1 – 6 of 6) sorted by relevance

/linux/rust/zerocopy-derive/derive/
H A Dinto_bytes.rs25 let is_c = repr.is_c(); in derive_into_bytes_struct() localVariable
47 } else if is_c && !repr.is_align_gt_1() && num_fields <= 1 { in derive_into_bytes_struct()
68 if is_c && is_syntactic_dst { in derive_into_bytes_struct()
73 } else if is_c && !repr.is_align_gt_1() { in derive_into_bytes_struct()
103 if !repr.is_c() && !repr.is_primitive() { in derive_into_bytes_enum()
153 if !repr.is_c() && !repr.is_transparent() && !repr.is_packed_1() { in derive_into_bytes_union()
H A Dunaligned.rs30 } else if repr.is_c() || repr.is_transparent() { in derive_unaligned_struct()
70 } else if repr.is_c() || repr.is_transparent() { in derive_unaligned_union()
H A Dtry_from_bytes.rs206 let (outer_tag_type, inner_tag_type) = if repr.is_c() { in derive_is_bit_valid()
471 .map(|repr| repr.is_c()) in derive_has_field_struct_union()
608 StructUnionRepr::from_attrs(&ctx.ast.attrs).map(|repr| repr.is_c()).unwrap_or(false); in derive_try_from_bytes_union()
H A Dmod.rs112 if !(repr.is_c() || repr.is_transparent()) { in derive_split_at()
H A Dknown_layout.rs256 if repr.is_c() { in derive()
/linux/rust/zerocopy-derive/
H A Drepr.rs116 pub(crate) fn is_c(&self) -> bool { in is_c() method