diff --git a/_images/processor-speed.png b/_images/processor-speed.png new file mode 100644 index 0000000..d73f596 Binary files /dev/null and b/_images/processor-speed.png differ diff --git a/porque-rust.html b/porque-rust.html index ca3e942..7785137 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -81,11 +81,11 @@
- Basic (com números e estruturado), dBase III Plus, - Clipper, Pascal, Cobol, Delphi (ObjectPascal), - C, C++, ActionScript (Flash), PHP, JavaScript, - Python, Objective-C, Clojure, Java, Scala - , Rust. -
- - -+ Basic (com números e estruturado), dBase III Plus, + Clipper, Pascal, Cobol, Delphi (ObjectPascal), + C, C++, ActionScript (Flash), PHP, JavaScript, + Python, Objective-C, Clojure, Java, Scala + , Rust. +
+ + +
-fn main() -< int{
+fn main() -> int{
let a = 2;
a = 3;
println!("{}", a);
- 0
+ 0
}
-
@@ -339,20 +339,20 @@ fn main() -< int{
| ^^^^^ cannot assign twice to immutable variable
-
+pub fn drop<T>(_x: T) { }
+
+ presente := Presente { ... }
-canal <- presente
-
-
- presente := Presente { ... }
-canal <- presente
-presente.abrir()
-
- localtime
SimpleDateFormatter
localtime
SimpleDateFormatter
struct Gift {
@@ -798,34 +778,34 @@ struct Gift {
+
let presente = Gift { package_color: "red", content: "A GIFT!" };
-
-
struct Point<T> {
x: T,
y: T
}
-
+
let my_point = Point<f32>(x: 1.0, y: 2.0);
-
-
enum Result<T, E> {
@@ -836,7 +816,7 @@ enum Result<T, E> {
trait Summary {
@@ -873,38 +853,38 @@ fn get_summary<T>(summarizable: T) -> String
"Cargo is the Rust package manager"
- -- "Cargo downloads your Rust package’s dependencies, - compiles your packages, makes distributable - packages, and uploads them to crates.io, the Rust - community’s package registry." -
-
+
+
+
+
+ 8. Cargo
+
+
+
+ "Cargo is the Rust package manager"
+
+
+ "Cargo downloads your Rust package’s dependencies,
+ compiles your packages, makes distributable
+ packages, and uploads them to crates.io, the Rust
+ community’s package registry."
+
+
+
+
+
+
+ 9. Tests
+
+
#[cfg(test)]
mod tests {
#[test]
fn testing() {
}
}
-
-
+
+
@@ -917,7 +897,7 @@ running 1 test
test tests::testing ... ok