In #Rust, can I assign a field _after_ I define an instance?
I think I'd like to create a method on &self to calculate the value of this field... but I don't want to re-calculate the result every time I need to access the value.
In #Rust, can I assign a field _after_ I define an instance?
I think I'd like to create a method on &self to calculate the value of this field... but I don't want to re-calculate the result every time I need to access the value.
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.