Knowledge Garden

Search

Search IconIcon to open search

Random Rust Notes

Last updated Jul 7, 2023 Edit Source

converting a string to number

variable are immutable by default, to change them later you have to set it to be mutable

constants

const CAPITAL_CASE: i32 = 9.0;

declare capital type assignment

these can be global these are even faster than immutable vars