In Rust strings can be represented in two ways:
a) String type
b) String slice
String type:
String type is defined as a struct of the following structure:
Depending on arch (in my case x86 64bit it is 24byte)
{
pointer to the address where string characters are stored (8b)
capacity (8b)
length (8b)
}