pub fn unpack_struct_field(self, field_num: usize) -> TypedValue {
        let field = self.ty.into_struct_inst().fields.remove(field_num);
        let val = match self.val {
            BaseValue::Struct(mut v) => v.remove(field_num),
            _ => unreachable!(),
        };
        TypedValue {
            ty: Type::Base(field.ty),
            val,
            ptr: Pointer::None,
        }
    }
/// Unpack one specific field from a struct value
Unpack one specific field from a struct value
Unpack one specific field from a struct value
pub fn unpack_struct_field(self, field_num: usize) -> TypedValue {
        let field = self.ty.into_struct_inst().fields.remove(field_num);
        let val = match self.val {
            BaseValue::Struct(mut v) => v.remove(field_num),
            _ => unreachable!(),
        };
        TypedValue {
            ty: Type::Base(field.ty),
            val,
            ptr: Pointer::None,
        }
    }
pub fn unpack_struct_field ( self , field_num : usize ) -> TypedValue { let field = self . ty . into_struct_inst ( ) . fields . remove ( field_num ) ; let val = match self . val { BaseValue :: Struct ( mut v ) => v . remove ( field_num ) , _ => unreachable ! ( ) , } ; TypedValue { ty : Type :: Base ( field . ty ) , val , ptr : Pointer :: None , } }
Unpack one specific field from a struct value
Unpack one specific field from a struct value
self
field_num
usize