• Home
  • Raw
  • Download

Lines Matching full:pod

6   NoUninit, Pod, TransparentWrapper, Zeroable,
10 #[derive(Copy, Clone, Pod, Zeroable)]
17 #[derive(Pod, Zeroable)]
19 struct GenericPackedStruct<T: Pod> {
25 impl<T: Pod> Clone for GenericPackedStruct<T> {
31 impl<T: Pod> Copy for GenericPackedStruct<T> {}
33 #[derive(Pod, Zeroable)]
35 struct GenericPackedStructExplicitPackedAlignment<T: Pod> {
41 impl<T: Pod> Clone for GenericPackedStructExplicitPackedAlignment<T> {
47 impl<T: Pod> Copy for GenericPackedStructExplicitPackedAlignment<T> {}
257 /// use bytemuck::{Pod, Zeroable};
259 /// #[derive(Pod, Zeroable)]
268 Debug, Copy, Clone, PartialEq, Eq, Pod, Zeroable, TransparentWrapper,
323 let pod = [0u8, 24u8]; in fails_cast_struct() localVariable
324 let res = bytemuck::checked::try_from_bytes::<CheckedBitPatternStruct>(&pod); in fails_cast_struct()
330 let pod = [0u8, 8u8]; in passes_cast_struct() localVariable
331 let res = bytemuck::checked::from_bytes::<CheckedBitPatternStruct>(&pod); in passes_cast_struct()
346 let pod = [0u8]; in checkedbitpattern_try_pod_read_unaligned() localVariable
349 >(&pod); in checkedbitpattern_try_pod_read_unaligned()
352 let pod = [5u8]; in checkedbitpattern_try_pod_read_unaligned() localVariable
355 >(&pod); in checkedbitpattern_try_pod_read_unaligned()
361 let pod = [0u8; 8]; in checkedbitpattern_aligned_struct() localVariable
362 bytemuck::checked::pod_read_unaligned::<CheckedBitPatternAlignedStruct>(&pod); in checkedbitpattern_aligned_struct()
367 let pod = [ in checkedbitpattern_c_default_discriminant_enum_with_fields() localVariable
373 >(&pod); in checkedbitpattern_c_default_discriminant_enum_with_fields()
379 let pod = [ in checkedbitpattern_c_default_discriminant_enum_with_fields() localVariable
385 >(&pod); in checkedbitpattern_c_default_discriminant_enum_with_fields()
396 let pod = [0x00, 0x00, 0x00, 0x00, 0xcc, 0x55, 0x55, 0xcc]; in checkedbitpattern_c_enum_with_fields() localVariable
399 >(&pod); in checkedbitpattern_c_enum_with_fields()
402 let pod = [0x01, 0x00, 0x00, 0x00, 0xcc, 0x55, 0x55, 0xcc]; in checkedbitpattern_c_enum_with_fields() localVariable
405 >(&pod); in checkedbitpattern_c_enum_with_fields()
411 let pod = [0x00, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; in checkedbitpattern_int_enum_with_fields() localVariable
414 >(&pod); in checkedbitpattern_int_enum_with_fields()
417 let pod = [0x01, 0x00, 0x00, 0x00, 0xcc, 0x55, 0x55, 0xcc]; in checkedbitpattern_int_enum_with_fields() localVariable
420 >(&pod); in checkedbitpattern_int_enum_with_fields()
432 let pod = Align8Bytes([ in checkedbitpattern_nested_enum_with_fields() localVariable
440 bytemuck::checked::from_bytes::<CheckedBitPatternEnumNested>(&pod.0); in checkedbitpattern_nested_enum_with_fields()
449 let pod = Align8Bytes([ in checkedbitpattern_nested_enum_with_fields() localVariable
457 bytemuck::checked::try_from_bytes::<CheckedBitPatternEnumNested>(&pod.0); in checkedbitpattern_nested_enum_with_fields()
461 let pod = Align8Bytes([ in checkedbitpattern_nested_enum_with_fields() localVariable
472 bytemuck::checked::from_bytes::<CheckedBitPatternEnumNested>(&pod.0); in checkedbitpattern_nested_enum_with_fields()
483 let pod = Align8Bytes([ in checkedbitpattern_nested_enum_with_fields() localVariable
494 bytemuck::checked::try_from_bytes::<CheckedBitPatternEnumNested>(&pod.0); in checkedbitpattern_nested_enum_with_fields()
499 let pod = [0xcc, 0x55, 0x55, 0xcc]; in checkedbitpattern_transparent_enum_with_fields() localVariable
502 >(&pod); in checkedbitpattern_transparent_enum_with_fields()
509 #[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
514 #[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable, bytemuck::ByteEq)]