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) -> ExitStatus
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<ArcArray<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
Auto Trait Implementations§
impl !RefUnwindSafe for Deserializer
impl !Send for Deserializer
impl !Sync for Deserializer
impl Unpin for Deserializer
impl !UnwindSafe for Deserializer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more