Struct erg_compiler::ty::deserialize::Deserializer
source · pub struct Deserializer { /* private fields */ }
Implementations§
source§impl Deserializer
impl Deserializer
pub fn new() -> Self
pub fn run(cfg: ErgConfig)
pub fn vec_to_bytes<const LEN: usize>(vector: Vec<u8>) -> [u8; LEN]
pub fn consume<const LEN: usize>(v: &mut Vec<u8>) -> [u8; LEN]
pub fn deserialize_u32(v: &mut Vec<u8>) -> u32
pub fn deserialize_const(
&mut self,
v: &mut Vec<u8>,
python_ver: PythonVersion
) -> DeserializeResult<ValueObj>
pub fn deserialize_const_vec(
&mut self,
v: &mut Vec<u8>,
python_ver: PythonVersion
) -> DeserializeResult<Vec<ValueObj>>
pub fn deserialize_const_array(
&mut self,
v: &mut Vec<u8>,
python_ver: PythonVersion
) -> DeserializeResult<RcArray<ValueObj>>
pub fn array_into_const(&mut self, arr: &[ValueObj]) -> ValueObj
pub fn try_into_str(&mut self, c: ValueObj) -> DeserializeResult<Str>
pub fn deserialize_str_vec(
&mut self,
v: &mut Vec<u8>,
python_ver: PythonVersion
) -> DeserializeResult<Vec<Str>>
pub fn deserialize_str(
&mut self,
v: &mut Vec<u8>,
python_ver: PythonVersion
) -> DeserializeResult<Str>
pub fn deserialize_bytes(&self, v: &mut Vec<u8>) -> DeserializeResult<Vec<u8>>
Trait Implementations§
source§impl Default for Deserializer
impl Default for Deserializer
source§fn default() -> Deserializer
fn default() -> Deserializer
Returns the “default value” for a type. Read more