Steel reads and modifies account data in-place using `as_account::<T>()` and `as_account_mut::<T>()`, avoiding any deserialization copies.
rust let user = user_info.as_account_mut::<UserState>(&program_id)?; user.balance += amount;
100 XP to Apprentice
In-place account reading and writing.
AI translates the explanation and quiz text while preserving code and answer scoring.
Steel reads and modifies account data in-place using `as_account::<T>()` and `as_account_mut::<T>()`, avoiding any deserialization copies.
rust let user = user_info.as_account_mut::<UserState>(&program_id)?; user.balance += amount;
1. What does as_account_mut::<T>(&program_id) do in Steel?
2. Does as_account allocate memory on the SBF heap?