linux:rust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:rust [2021/02/14 12:36] kurt.smolderen@empuly.netlinux:rust [2021/02/14 13:05] (current) kurt.smolderen@empuly.net
Line 9: Line 9:
  
   * Scalar types:   * Scalar types:
-      * Integer: Internally represented in 2-components notation when signed (-(2<sup>n</sup>   → 2<sup>n</sup>   -1)+      * Integer: Internally represented in 2-components notation when signed (-(2<sup>n</sup>   -> 2<sup>n</sup>   -1)
  
 ^Length^Signed^Unsigned| ^Length^Signed^Unsigned|
Line 25: Line 25:
   * Tuple: Fixed size (defined at declaration), elements may differ in type   * Tuple: Fixed size (defined at declaration), elements may differ in type
       * ''let tup: (i32, f64, u8) = (500, 6.4, 1);''       * ''let tup: (i32, f64, u8) = (500, 6.4, 1);''
-      * Values can be retrieved by either pattern matching: ''let (x, y, z) = tup; <nowiki>//</nowiki> x, y and z are now accessible as variables''  or by using a period ''let x = tup.0;''+      * Values can be retrieved by either pattern matching: ''let (x, y, z) = tup; %%//%% x, y and z are now accessible as variables''  or by using a period ''let x = tup.0;''
       * Array: Fixed size, elements should be of the same type       * Array: Fixed size, elements should be of the same type
       * ''let a = [1, 2, 3];''       * ''let a = [1, 2, 3];''
  • linux/rust.1613302562.txt.gz
  • Last modified: 2021/02/14 12:36
  • by kurt.smolderen@empuly.net