//! Raw postcard passthrough types for opaque adapters.
//!
//! When a type uses `#[facet(opaque = Adapter)]`, the serializer calls the adapter's
//! `serialize_map` to get an `OpaqueSerialize { ptr, shape }`. If the shape matches
//! the sentinel shape defined in vox-schema (`RawPostcardBorrowed`), we write the
//! bytes directly (passthrough) instead of recursively serializing.
use PtrConst;
pub use ;
/// Create an `OpaqueSerialize` that tells the serializer to write these
/// already-encoded postcard bytes directly.
/// Try to extract passthrough bytes from an `OpaqueSerialize` result.
/// Returns `Some(bytes)` if this is already-encoded postcard data.
///
/// Checks against the sentinel shape defined in vox-schema using value equality.
///
/// # Safety
/// The caller must ensure `ptr` points to valid memory matching `shape`.
pub unsafe