Searched refs:CastType (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | layout.rs | 94 pub enum CastType { enum 613 cast_type: CastType, in validate_cast_and_convert_metadata() argument 662 CastType::Prefix => 0, in validate_cast_and_convert_metadata() 663 CastType::Suffix => bytes_len, in validate_cast_and_convert_metadata() 743 CastType::Prefix => self_bytes, in validate_cast_and_convert_metadata() 750 CastType::Suffix => bytes_len - self_bytes, in validate_cast_and_convert_metadata() 1445 (@generate_cast_type _) => { [CastType::Prefix, CastType::Suffix] }; in test_validate_cast_and_convert_metadata() 1446 (@generate_cast_type $variant:ident) => { [CastType::$variant] }; in test_validate_cast_and_convert_metadata() 1514 (layout, addr, bytes_len, cast_type): (DstLayout, usize, usize, CastType), in test_validate_cast_and_convert_metadata() argument 1553 CastType::Prefix => { in test_validate_cast_and_convert_metadata() [all …]
|
| H A D | lib.rs | 930 CastType::Prefix, in maximum_trailing_slice_len() 2006 try_ref_from_prefix_suffix(source, CastType::Prefix, None) in try_ref_from_prefix() 2116 try_ref_from_prefix_suffix(source, CastType::Suffix, None).map(swap) in try_ref_from_suffix() 2321 try_mut_from_prefix_suffix(source, CastType::Prefix, None) in try_mut_from_prefix() 2421 try_mut_from_prefix_suffix(source, CastType::Suffix, None).map(swap) in try_mut_from_suffix() 2647 try_ref_from_prefix_suffix(source, CastType::Prefix, Some(count)) in try_ref_from_prefix_with_elems() 2755 try_ref_from_prefix_suffix(source, CastType::Suffix, Some(count)).map(swap) in try_ref_from_suffix_with_elems() 2962 try_mut_from_prefix_suffix(source, CastType::Prefix, Some(count)) in try_mut_from_prefix_with_elems() 3062 try_mut_from_prefix_suffix(source, CastType::Suffix, Some(count)).map(swap) in try_mut_from_suffix_with_elems() 3300 cast_type: CastType, in try_ref_from_prefix_suffix() argument [all …]
|
| H A D | ref.rs | 368 .try_cast_into::<T, BecauseImmutable>(CastType::Prefix, None) in from_prefix() 433 .try_cast_into::<T, BecauseImmutable>(CastType::Suffix, None) in from_suffix()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | inner.rs | 18 layout::{CastType, MetadataCastError}, 565 cast_type: CastType, in try_cast_into() argument 606 CastType::Prefix => (l_slice, r_slice), in try_cast_into() 607 CastType::Suffix => (r_slice, l_slice), in try_cast_into()
|
| H A D | ptr.rs | 24 AlignmentError, CastError, CastType, KnownLayout, SizeError, TryFromBytes, ValidityError, 1101 cast_type: CastType, in try_cast_into() argument 1184 |slf| match slf.try_cast_into(CastType::Prefix, meta) { in try_cast_into_no_leftover() 1412 for cast_type in [CastType::Prefix, CastType::Suffix] { in test() 1425 CastType::Prefix => { in test() 1428 CastType::Suffix => assert_eq!(remaining_addr, bytes_addr), in test() 1514 ptr.try_cast_into::<$ty, BecauseImmutable>(CastType::Prefix, Some($elems)); in test_try_cast_into_explicit_count()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 594 cast_type: CastType, in validate_cast_and_convert_metadata() argument
|