Similar to from_utf8 we take ownership of the Vec<Cmd>, and we should be able to get the code back out like in FromUtf8Error::into_bytes.
We should probably have a CompileError::into_code method that consumes the error and returns the code, and maybe a as_code method that borrows a code slice.
Similar to
from_utf8
we take ownership of theVec<Cmd>
, and we should be able to get the code back out like inFromUtf8Error::into_bytes
. We should probably have aCompileError::into_code
method that consumes the error and returns the code, and maybe aas_code
method that borrows a code slice.