devela::_dep::rkyv::traits

Trait Portable

pub unsafe trait Portable { }
Available on crate feature dep_rkyv only.
Expand description

A type with a stable, well-defined layout that is the same on all targets.

§Safety

The implementing type must have a stable, well-defined layout that is the same on all targets. Structs and unions must be #[repr(transparent)] or #[repr(C)]. Enums must be #[repr(C)], #[repr(int)], or #[repr(C, int)].

The implementing type must not have interior mutability (i.e. no UnsafeCells).

Implementations on Foreign Types§

§

impl Portable for bool

§

impl Portable for i8

§

impl Portable for str

§

impl Portable for u8

§

impl Portable for ()

§

impl<T> Portable for [T]
where T: Portable,

§

impl<T, const N: usize> Portable for [T; N]
where T: Portable,

Implementors§

§

impl Portable for ArchivedIpAddr

§

impl Portable for ArchivedSocketAddr

Source§

impl Portable for ArchivedBoxed

Available on crate feature alloc only.
§

impl Portable for NonZero<i8>

§

impl Portable for NonZero<u8>

§

impl Portable for PhantomPinned

§

impl Portable for CStr

§

impl Portable for ArchivedCString

§

impl Portable for ArchivedIpv4Addr
where [u8; 4]: Portable,

§

impl Portable for ArchivedIpv6Addr
where [u8; 16]: Portable,

§

impl Portable for ArchivedSocketAddrV4

§

impl Portable for ArchivedSocketAddrV6

§

impl Portable for ArchivedOptionNonZeroI8
where <i8 as Archive>::Archived: Portable,

§

impl Portable for ArchivedOptionNonZeroI16

§

impl Portable for ArchivedOptionNonZeroI32

§

impl Portable for ArchivedOptionNonZeroI64

§

impl Portable for ArchivedOptionNonZeroI128

§

impl Portable for ArchivedOptionNonZeroU8
where <u8 as Archive>::Archived: Portable,

§

impl Portable for ArchivedOptionNonZeroU16

§

impl Portable for ArchivedOptionNonZeroU32

§

impl Portable for ArchivedOptionNonZeroU64

§

impl Portable for ArchivedOptionNonZeroU128

§

impl Portable for ArchivedRangeFull

§

impl Portable for NonZeroI16_be

§

impl Portable for NonZeroI16_le

§

impl Portable for NonZeroI32_be

§

impl Portable for NonZeroI32_le

§

impl Portable for NonZeroI64_be

§

impl Portable for NonZeroI64_le

§

impl Portable for NonZeroI128_be

§

impl Portable for NonZeroI128_le

§

impl Portable for NonZeroU16_be

§

impl Portable for NonZeroU16_le

§

impl Portable for NonZeroU32_be

§

impl Portable for NonZeroU32_le

§

impl Portable for NonZeroU64_be

§

impl Portable for NonZeroU64_le

§

impl Portable for NonZeroU128_be

§

impl Portable for NonZeroU128_le

§

impl Portable for char_be

§

impl Portable for char_le

§

impl Portable for f32_be

§

impl Portable for f32_le

§

impl Portable for f64_be

§

impl Portable for f64_le

§

impl Portable for i16_be

§

impl Portable for i16_le

§

impl Portable for i32_be

§

impl Portable for i32_le

§

impl Portable for i64_be

§

impl Portable for i64_le

§

impl Portable for i128_be

§

impl Portable for i128_le

§

impl Portable for u16_be

§

impl Portable for u16_le

§

impl Portable for u32_be

§

impl Portable for u32_le

§

impl Portable for u64_be

§

impl Portable for u64_le

§

impl Portable for u128_be

§

impl Portable for u128_le

§

impl Portable for NonZeroI16_ube

§

impl Portable for NonZeroI16_ule

§

impl Portable for NonZeroI32_ube

§

impl Portable for NonZeroI32_ule

§

impl Portable for NonZeroI64_ube

§

impl Portable for NonZeroI64_ule

§

impl Portable for NonZeroI128_ube

§

impl Portable for NonZeroI128_ule

§

impl Portable for NonZeroU16_ube

§

impl Portable for NonZeroU16_ule

§

impl Portable for NonZeroU32_ube

§

impl Portable for NonZeroU32_ule

§

impl Portable for NonZeroU64_ube

§

impl Portable for NonZeroU64_ule

§

impl Portable for NonZeroU128_ube

§

impl Portable for NonZeroU128_ule

§

impl Portable for char_ube

§

impl Portable for char_ule

§

impl Portable for f32_ube

§

impl Portable for f32_ule

§

impl Portable for f64_ube

§

impl Portable for f64_ule

§

impl Portable for i16_ube

§

impl Portable for i16_ule

§

impl Portable for i32_ube

§

impl Portable for i32_ule

§

impl Portable for i64_ube

§

impl Portable for i64_ule

§

impl Portable for i128_ube

§

impl Portable for i128_ule

§

impl Portable for u16_ube

§

impl Portable for u16_ule

§

impl Portable for u32_ube

§

impl Portable for u32_ule

§

impl Portable for u64_ube

§

impl Portable for u64_ule

§

impl Portable for u128_ube

§

impl Portable for u128_ule

§

impl Portable for ArchivedString

§

impl Portable for ArchivedDuration

§

impl Portable for ArchivedStringRepr
where OutOfLineRepr: Portable, InlineRepr: Portable,

§

impl<K, H> Portable for ArchivedHashSet<K, H>
where ArchivedHashMap<K, (), H>: Portable,

§

impl<K, H> Portable for ArchivedIndexSet<K, H>

§

impl<K, V> Portable for Entry<K, V>
where K: Portable, V: Portable,

§

impl<K, V, H> Portable for ArchivedHashMap<K, V, H>

§

impl<K, V, H> Portable for ArchivedIndexMap<K, V, H>

§

impl<K, V, const E: usize> Portable for ArchivedBTreeMap<K, V, E>

§

impl<K, const E: usize> Portable for ArchivedBTreeSet<K, E>

§

impl<O> Portable for RawRelPtr<O>

§

impl<T0> Portable for ArchivedTuple1<T0>
where T0: Portable,

§

impl<T0, T1> Portable for ArchivedTuple2<T0, T1>
where T0: Portable, T1: Portable,

§

impl<T0, T1, T2> Portable for ArchivedTuple3<T0, T1, T2>
where T0: Portable, T1: Portable, T2: Portable,

§

impl<T0, T1, T2, T3> Portable for ArchivedTuple4<T0, T1, T2, T3>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable,

§

impl<T0, T1, T2, T3, T4> Portable for ArchivedTuple5<T0, T1, T2, T3, T4>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable,

§

impl<T0, T1, T2, T3, T4, T5> Portable for ArchivedTuple6<T0, T1, T2, T3, T4, T5>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6> Portable for ArchivedTuple7<T0, T1, T2, T3, T4, T5, T6>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Portable for ArchivedTuple8<T0, T1, T2, T3, T4, T5, T6, T7>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Portable for ArchivedTuple9<T0, T1, T2, T3, T4, T5, T6, T7, T8>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable, T8: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Portable for ArchivedTuple10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable, T8: Portable, T9: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Portable for ArchivedTuple11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable, T8: Portable, T9: Portable, T10: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Portable for ArchivedTuple12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable, T8: Portable, T9: Portable, T10: Portable, T11: Portable,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Portable for ArchivedTuple13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
where T0: Portable, T1: Portable, T2: Portable, T3: Portable, T4: Portable, T5: Portable, T6: Portable, T7: Portable, T8: Portable, T9: Portable, T10: Portable, T11: Portable, T12: Portable,

§

impl<T> Portable for ArchivedBound<T>
where T: Portable,

§

impl<T> Portable for ArchivedOption<T>
where T: Portable,

Source§

impl<T> Portable for ArchivedBareBox<T>
where T: Archive, <T as Archive>::Archived: Portable,

§

impl<T> Portable for ManuallyDrop<T>
where T: Portable,

§

impl<T> Portable for PhantomData<T>
where T: ?Sized,

§

impl<T> Portable for ArchivedBox<T>

§

impl<T> Portable for ArchivedHashTable<T>

§

impl<T> Portable for ArchivedOptionBox<T>
where T: ArchivePointee + ?Sized, Repr<T>: Portable,

§

impl<T> Portable for ArchivedRange<T>
where T: Portable,

§

impl<T> Portable for ArchivedRangeFrom<T>
where T: Portable,

§

impl<T> Portable for ArchivedRangeInclusive<T>
where T: Portable,

§

impl<T> Portable for ArchivedRangeTo<T>
where T: Portable,

§

impl<T> Portable for ArchivedRangeToInclusive<T>
where T: Portable,

§

impl<T> Portable for ArchivedVec<T>

§

impl<T> Portable for MaybeUninit<T>
where T: Portable,

§

impl<T, E> Portable for ArchivedResult<T, E>
where T: Portable, E: Portable,

§

impl<T, F> Portable for ArchivedRc<T, F>

§

impl<T, F> Portable for ArchivedRcWeak<T, F>

§

impl<T, N> Portable for NichedOption<T, N>

§

impl<T, O> Portable for RelPtr<T, O>

Source§

impl<T, const C: usize, const R: usize, const CR: usize, const RMAJ: bool, S: Storage> Portable for ArchivedArray2d<T, C, R, CR, RMAJ, S>
where Array<T, CR, S>: Archive, <Array<T, CR, S> as Archive>::Archived: Portable,

Source§

impl<T, const CAP: usize, IDX, S: Storage> Portable for ArchivedDestaque<T, CAP, IDX, S>
where Array<T, CAP, S>: Archive, IDX: Archive, <Array<T, CAP, S> as Archive>::Archived: Portable, <IDX as Archive>::Archived: Portable,

Source§

impl<T, const CAP: usize, IDX, S: Storage> Portable for ArchivedStack<T, CAP, IDX, S>
where Array<T, CAP, S>: Archive, IDX: Archive, <Array<T, CAP, S> as Archive>::Archived: Portable, <IDX as Archive>::Archived: Portable,

Source§

impl<T, const CAP: usize, S: Storage> Portable for ArchivedArray<T, CAP, S>