Suppose I know the size of a variable which should be stack allocated and be of string type and mutable then how can i create a string type variable that is mutable but of fixed size and hence stack memory is allocated
Using String would give me heap allocated dynamic length variable
Using str would mean i should give the value in compile time itself
Using array of bytes would do it but i will lose functionality associated with string type