File tree 5 files changed +24
-20
lines changed
5 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 6
6
type : ' custom'
7
7
topicLevel : ' start'
8
8
position :
9
- x : 255
10
- y : 520
9
+ x : 320
10
+ y : 580
11
11
width : 320
12
12
externalLinks :
13
13
- name : ' Libro Oficial'
14
14
english : false
15
15
link : ' https://book.rustlang-es.org/ch06-01-defining-an-enum'
16
- - name : ' Documentacion Oficial '
16
+ - name : ' Comprehensive Rust '
17
17
english : false
18
18
link : ' https://google.github.io/comprehensive-rust/es/std-types/option.html'
19
- - name : ' Comprehensive Rust '
19
+ - name : ' Documentacion Oficial '
20
20
english : true
21
- link : ' https://doc.rust-lang.org/std/option'
21
+ link : ' https://doc.rust-lang.org/stable/ std/option'
22
22
- name : ' ¿Cómo almacena Rust los enum en memoria?'
23
23
english : false
24
24
link : ' https://blog.rustlang-es.org/articles/como-almacena-rust-los-enum-en-memoria'
@@ -46,7 +46,7 @@ enum Option<T> {
46
46
Rust ofrece múltiples funciones para manipular opciones de forma segura:
47
47
48
48
- ** is_some() e is_none():** Verifican si un ` Option ` contiene un valor o no.
49
-
49
+
50
50
``` rust
51
51
let maybe_value : Option <i32 > = Some (5 );
52
52
assert! (maybe_value . is_some ());
Original file line number Diff line number Diff line change 1
1
---
2
- title : ' Results '
2
+ title : ' Result '
3
3
description : ' Result es una enumeración en Rust que se utiliza para representar valores que pueden fallar'
4
4
draft : true
5
5
data :
6
6
type : ' custom'
7
7
topicLevel : ' start'
8
8
position :
9
- x : 255
10
- y : 520
9
+ x : 320
10
+ y : 620
11
11
width : 320
12
+ sourcePosition :
13
+ error-handling : ' bottom'
12
14
externalLinks :
13
15
- name : ' Libro Oficial'
14
16
english : false
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ description: 'Mejorando el manejo de errores con el Operador de Propagación (`?
4
4
draft : true
5
5
data :
6
6
type : ' custom'
7
- topicLevel : ' start '
7
+ topicLevel : ' medium '
8
8
position :
9
- x : 255
10
- y : 520
9
+ x : 650
10
+ y : 700
11
11
width : 320
12
+ sourcePosition :
13
+ error-handling : ' left'
12
14
externalLinks :
13
15
- name : ' Libro Oficial'
14
16
english : false
Original file line number Diff line number Diff line change 1
- ---
2
1
title : ' Manejo de Errores'
3
2
description : ' '
4
3
draft : true
5
4
data :
6
5
type : ' custom'
7
6
topicLevel : ' medium'
8
7
position :
9
- x : 300
10
- y : 600
8
+ x : 390
9
+ y : 700
11
10
sourcePosition :
12
11
basic : ' left'
13
- targetPosition :
12
+ targetPosition :
13
+ result : ' top'
14
14
cargo : ' bottom'
15
- ---
15
+ propagation-operator : ' right '
Original file line number Diff line number Diff line change 7
7
topicLevel : ' start'
8
8
position :
9
9
x : 200
10
- y : 700
10
+ y : 750
11
11
sourcePosition :
12
- error-handling : ' top '
13
- targetPosition :
12
+ error-handling : ' right '
13
+ targetPosition :
14
14
traits : ' bottom'
15
15
---
16
16
# Titulo
You can’t perform that action at this time.
0 commit comments