diff --git a/ciborium-ll/src/enc.rs b/ciborium-ll/src/enc.rs index b8b8a20..44f2224 100644 --- a/ciborium-ll/src/enc.rs +++ b/ciborium-ll/src/enc.rs @@ -28,6 +28,11 @@ impl Write for Encoder { } impl Encoder { + /// Unwraps the `Write`, consuming the `Encoder`. + pub fn into_inner(self) -> W { + self.0 + } + /// Push a `Header` to the wire #[inline] pub fn push(&mut self, header: Header) -> Result<(), W::Error> {