pub fn stack_struct_borrow_field(
    state: &AbstractState,
    field_index: FieldDefinitionIndex,
) -> Result<AbstractState, VMError> {
    let mut state = state.clone();
    state.register_move();
    let field_signature = state.module.get_field_signature(field_index).0.clone();
    let abstract_value = AbstractValue {
        token: SignatureToken::MutableReference(Box::new(field_signature.clone())),
        kind: SignatureTokenView::new(&state.module, &field_signature).kind(&[]),
    };
    state = stack_push(&state, abstract_value)?;
    Ok(state)
}
/// Push the field at `field_index` of a struct as an `AbstractValue` to the stack
Push the field at `field_index` of a struct as an `AbstractValue` to the stack
Push the field at ` field_index ` of a struct as an ` AbstractValue ` to the stack
pub fn stack_struct_borrow_field(
    state: &AbstractState,
    field_index: FieldDefinitionIndex,
) -> Result<AbstractState, VMError> {
    let mut state = state.clone();
    state.register_move();
    let field_signature = state.module.get_field_signature(field_index).0.clone();
    let abstract_value = AbstractValue {
        token: SignatureToken::MutableReference(Box::new(field_signature.clone())),
        kind: SignatureTokenView::new(&state.module, &field_signature).kind(&[]),
    };
    state = stack_push(&state, abstract_value)?;
    Ok(state)
}
pub fn stack_struct_borrow_field ( state : & AbstractState , field_index : FieldDefinitionIndex , ) -> Result < AbstractState , VMError > { let mut state = state . clone ( ) ; state . register_move ( ) ; let field_signature = state . module . get_field_signature ( field_index ) . 0 . clone ( ) ; let abstract_value = AbstractValue { token : SignatureToken :: MutableReference ( Box :: new ( field_signature . clone ( ) ) ) , kind : SignatureTokenView :: new ( & state . module , & field_signature ) . kind ( & [ ] ) , } ; state = stack_push ( & state , abstract_value ) ? ; Ok ( state ) }
Push the field at `field_index` of a struct as an `AbstractValue` to the stack
Push the field at ` field_index ` of a struct as an ` AbstractValue ` to the stack
state
&AbstractState
field_index
FieldDefinitionIndex