Searched refs:CastSized (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/zerocopy-derive/derive/ |
| H A D | try_from_bytes.rs | 226 type ProjectToTag = #zerocopy_crate::pointer::cast::CastSized; in derive_is_bit_valid() 260 use #zerocopy_crate::pointer::cast::{CastSized, Projection}; in derive_is_bit_valid() 262 slf.project::<___ZerocopyRawEnum #ty_generics, CastSized>() in derive_is_bit_valid() 333 #zerocopy_crate::pointer::cast::CastSized, in derive_is_bit_valid() 421 #zerocopy_crate::pointer::cast::CastSized in derive_is_bit_valid() 429 #zerocopy_crate::pointer::cast::CastSized, in derive_is_bit_valid()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | mod.rs | 123 pub enum CastSized {} enum 128 unsafe impl<Src, Dst> Project<Src, Dst> for CastSized { implementation 137 unsafe impl<Src, Dst> Cast<Src, Dst> for CastSized {} implementation
|
| H A D | ptr.rs | 169 use crate::pointer::cast::{CastExact, CastSized, IdCast}; 584 let ptr = unsafe { self.project_transmute_unchecked::<_, _, CastSized>() }; in into_unalign()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macro_util.rs | 31 cast::CastSized, 545 if Dst::is_bit_valid(ptr.cast::<_, CastSized, _>()) { in try_transmute()
|
| /linux/rust/zerocopy/src/ |
| H A D | impls.rs | 895 let c: Ptr<'_, [ReadOnly<T>; N], _> = c.cast::<_, crate::pointer::cast::CastSized, _>();
|
| H A D | lib.rs | 3361 let mut c_ptr = c_ptr.cast::<_, crate::pointer::cast::CastSized, _>(); in try_read_from()
|