Lines Matching defs:IntoBytes
16 //! code, then deriving `IntoBytes` and `FromBytes` on three different types
35 FromBytes, Immutable, IntoBytes, KnownLayout, Ptr, ReadOnly, TryFromBytes, ValidityError,
57 label = "types with padding cannot implement `IntoBytes`",
75 label = "types with padding cannot implement `IntoBytes`",
298 label = "`IntoBytes` needs all field types to be `Sized` in order to determine whether there is padding",
300 note = "`IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized`"
527 Src: IntoBytes,
544 // `Src: IntoBytes` and the `ReadOnly<Src>` bridge let `transmute_with`
601 Self::Src: IntoBytes + Immutable + KnownLayout,
619 Src: IntoBytes + Immutable + KnownLayout + ?Sized,
662 Self::Src: IntoBytes,
680 Src: FromBytes + IntoBytes + KnownLayout + ?Sized,
681 Dst: TryFromBytes + IntoBytes + KnownLayout + ?Sized,
751 /// - `Src: IntoBytes + Immutable`
770 // (`Dst`) because the caller has guaranteed that `Src: IntoBytes`,
790 Src: IntoBytes + Immutable,
847 Src: FromBytes + IntoBytes,
848 Dst: FromBytes + IntoBytes,
858 // (`Dst`) and vice-versa because `Src: FromBytes + IntoBytes`, `Dst:
859 // FromBytes + IntoBytes`, and (as asserted above) `size_of::<Src>()
870 Src: FromBytes + IntoBytes,
871 Dst: TryFromBytes + IntoBytes,
905 Src: KnownLayout + IntoBytes + Immutable,
938 Src: KnownLayout + FromBytes + IntoBytes,
939 Dst: KnownLayout<PointerMetadata = usize> + FromBytes + IntoBytes,