diff --git a/_images/rust-issues.png b/_images/rust-issues.png new file mode 100644 index 0000000..8d2109f Binary files /dev/null and b/_images/rust-issues.png differ diff --git a/rust-legal.html b/rust-legal.html index 55054e4..2579a4d 100644 --- a/rust-legal.html +++ b/rust-legal.html @@ -156,6 +156,8 @@ fn main() { 2 2 + +
"Copy trait"
+fn sum_of_squares(input: &[i32]) -> i32 {
+ input.iter()
+ .map(|&i| i * i)
+ .sum()
+}
+
+
+fn sum_of_squares(input: &[i32]) -> i32 {
+ input.par_iter()
+ .map(|&i| i * i)
+ .sum()
+}
+
+
+#[logfn(ok = "TRACE", err = "ERROR")]
+fn call_isan(num: &str) -> Result<Success, Error> {
+ if num.len() >= 10 && num.len() <= 15 {
+ Ok(Success)
+ } else {
+ Err(Error)
+ }
+}
+
+ Dropbox
+ +Petabyte storage
+Mozilla
+ +Base do Firefox Quantum
+Microsoft
+ +Usado na parte de IoT do Azure
+