pub enum InspectionEncoding {
Rapira,
RawLayout,
Opaque,
}Expand description
How a codec’s on-disk bytes relate to generic inspection decoding.
Variants§
Rapira
Returned value bytes are accepted by the generic DynValue decoder for
the collection’s Typ.
This does not promise that rapira::deserialize::<ConcreteType>
succeeds. Compatible Zero layouts may not implement Rapira at all,
and DynValue decoding intentionally differs from typed Rapira for some
values (for example non-finite floats).
let value = armour_core::dyn_value::decode(typ, value_bytes)?;
let _ = value;For the full Inspector lookup + decode flow, see the armour
module docs (requires the armour feature).
RawLayout
Contiguous raw memory image of the logical type.
Used when the collection does not promise DynValue compatibility —
including Zero layouts whose computed Typ width differs from the
stored value width, unsupported / variable Typ shapes, or non
little-endian targets.
Opaque
No generic decoder contract is declared.
Trait Implementations§
Source§impl Clone for InspectionEncoding
impl Clone for InspectionEncoding
Source§fn clone(&self) -> InspectionEncoding
fn clone(&self) -> InspectionEncoding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for InspectionEncoding
Source§impl Debug for InspectionEncoding
impl Debug for InspectionEncoding
impl Eq for InspectionEncoding
Source§impl PartialEq for InspectionEncoding
impl PartialEq for InspectionEncoding
impl StructuralPartialEq for InspectionEncoding
Auto Trait Implementations§
impl Freeze for InspectionEncoding
impl RefUnwindSafe for InspectionEncoding
impl Send for InspectionEncoding
impl Sync for InspectionEncoding
impl Unpin for InspectionEncoding
impl UnsafeUnpin for InspectionEncoding
impl UnwindSafe for InspectionEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.