ps_ecc/codeword/methods/into_inner.rs
1use crate::{Codeword, Cow};
2
3impl<'lt> Codeword<'lt> {
4 /// Consumes the view and returns the full underlying buffer. Depending
5 /// on the operation that produced this codeword, the buffer may carry
6 /// parity and header bytes in addition to the message.
7 #[must_use]
8 pub fn into_inner(self) -> Cow<'lt> {
9 self.codeword
10 }
11}