fn main() {
 struct SomeData {
     integer : i32,
     fractional : f32,
     character : char,
     fiveBytes : [u8 ; 5],
 }
 
 let mut data = SomeData{
     integer : 60,
     fractional : 183.46,
     character : 'Q',
     fiveBytes : [0,1,2,3,4],
 };
 
 data.fiveBytes = [1,2,3,4,5];
 
 println!("{} {} {} {}", data.integer,data.fractional,data.character,data.fiveBytes[3]);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: