fn decode_global(&mut self, modname: Vec<u8>, globname: Vec<u8>) -> Result<Value> {
        let value = match (&*modname, &*globname) {
            (b"_codecs", b"encode") => Value::Global(Global::Encode),
            (b"__builtin__", b"set") | (b"builtins", b"set") =>
                Value::Global(Global::Set),
            (b"__builtin__", b"frozenset") | (b"builtins", b"frozenset") =>
                Value::Global(Global::Frozenset),
            (b"__builtin__", b"list") | (b"builtins", b"list") =>
                Value::Global(Global::List),
            (b"__builtin__", b"bytearray") | (b"builtins", b"bytearray") =>
                Value::Global(Global::Bytearray),
            (b"__builtin__", b"int") | (b"builtins", b"int") =>
                Value::Global(Global::Int),
            _ => Value::Global(Global::Other),
        };
        Ok(value)
    }
// Push the Value::Global referenced by modname and globname.
Push the Value::Global referenced by modname and globname.
Push the Value :: Global referenced by modname and globname .
fn decode_global(&mut self, modname: Vec<u8>, globname: Vec<u8>) -> Result<Value> {
        let value = match (&*modname, &*globname) {
            (b"_codecs", b"encode") => Value::Global(Global::Encode),
            (b"__builtin__", b"set") | (b"builtins", b"set") =>
                Value::Global(Global::Set),
            (b"__builtin__", b"frozenset") | (b"builtins", b"frozenset") =>
                Value::Global(Global::Frozenset),
            (b"__builtin__", b"list") | (b"builtins", b"list") =>
                Value::Global(Global::List),
            (b"__builtin__", b"bytearray") | (b"builtins", b"bytearray") =>
                Value::Global(Global::Bytearray),
            (b"__builtin__", b"int") | (b"builtins", b"int") =>
                Value::Global(Global::Int),
            _ => Value::Global(Global::Other),
        };
        Ok(value)
    }
fn decode_global ( & mut self , modname : Vec < u8 > , globname : Vec < u8 > ) -> Result < Value > { let value = match ( & * modname , & * globname ) { ( b" " , b" " ) => Value :: Global ( Global :: Encode ) , ( b" " , b" " ) | ( b" " , b" " ) => Value :: Global ( Global :: Set ) , ( b" " , b" " ) | ( b" " , b" " ) => Value :: Global ( Global :: Frozenset ) , ( b" " , b" " ) | ( b" " , b" " ) => Value :: Global ( Global :: List ) , ( b" " , b" " ) | ( b" " , b" " ) => Value :: Global ( Global :: Bytearray ) , ( b" " , b" " ) | ( b" " , b" " ) => Value :: Global ( Global :: Int ) , _ => Value :: Global ( Global :: Other ) , } ; Ok ( value ) }
Push the Value::Global referenced by modname and globname.
Push the Value :: Global referenced by modname and globname .
&mut self
modname
Vec<u8>
globname
Vec<u8>
&mut self
modname
Vec<u8>
globname
Vec<u8>