Rust - Compound Types

 Compound Types:

Tuple

let info = (1,3.3.999);

info.0; -->

let(x,y,z) = info; will initialize x to 1, y to 3.3 and z to 999.



Array: support size of 32 only.


let buf = [1,2,3];

buf[0],buf[1],buf[2].

Comments

Popular posts from this blog

BIOFLOC