Comprehensive Rust(Español) 202412expressions) te permite ejecutar código diferente en función de si un valor coincide con un patrón: use std::time::Duration; fn sleep_for(secs: f32) { if let Ok(dur) = Duration::try_from_secs_f32(secs) { std: los tipos personalizados de la siguiente manera: struct Player { name: String, strength: u8, hit_points: u8, } fn main() { let p1 = Player::default(); // El trait predeterminado añade el constructor 0).abs() + (p1.1 - p2.1).abs() } fn nearest<'a>(points: &'a [Point], query: &Point) -> Option<&'a Point> { let mut nearest = None; for p in points { if let Some((_, nearest_dist)) = nearest { let0 码力 | 389 页 | 1.04 MB | 10 月前3
PlantUML 1.2020.23 Guía de Referencia del LenguajeWith teoz usage it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml Guía de Referencia del Lenguaje PlantUML (1.2020.23) 21 / 304 1.29 Estereotipos y marcas Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml 1.29 Estereotipos y marcas Es posible añadir estereotipos a participantes usando << y >> : URL WU is Waiting WB is Processing @300 WB is Waiting @enduml 9.4 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" as WB concise0 码力 | 305 页 | 3.11 MB | 1 年前3
PlantUML 1.2020.22 Guía de Referencia del LenguajeWith teoz usage it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml !pragma teoz true {start} Alice -> Bob : start doing things during duration Bob -> Max Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml 1.27 Estereotipos y marcas Es posible añadir estereotipos a participantes usando << y >> : URL WU is Waiting WB is Processing @300 WB is Waiting @enduml 9.4 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" as WB concise0 码力 | 293 页 | 3.02 MB | 1 年前3
PlantUML 1.2021.2 Guía de Referencia del LenguajeWith teoz usage it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml !pragma teoz true {start} Alice -> Bob : start doing things during duration Bob -> Max Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml 1.31 Estereotipos y marcas Es posible añadir estereotipos a participantes usando << y >> : URL WU is Waiting WB is Processing @300 WB is Waiting @enduml 10.4 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" as WB concise0 码力 | 389 页 | 4.12 MB | 1 年前3
PlantUML 1.2021.1 Guía de Referencia del LenguajeWith teoz usage it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml !pragma teoz true {start} Alice -> Bob : start doing things during duration Bob -> Max Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml 1.31 Estereotipos y marcas Es posible añadir estereotipos a participantes usando << y >> : URL WU is Waiting WB is Processing @300 WB is Waiting @enduml 10.4 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" as WB concise0 码力 | 384 页 | 4.07 MB | 1 年前3
PlantUML 1.2021.3 Guía de Referencia del LenguajeWith teoz usage it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml !pragma teoz true {start} Alice -> Bob : start doing things during duration Bob -> Max Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml 1.31 Estereotipos y marcas Es posible añadir estereotipos a participantes usando << y >> : URL WU is Waiting WB is Processing @300 WB is Waiting @enduml 10.4 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" as WB concise0 码力 | 407 页 | 4.28 MB | 1 年前3
PlantUML 1.2023.11 Guía de Referencia del LenguajeDuration With teoz it is possible to add anchors to the diagram and use the anchors to specify duration time. @startuml !pragma teoz true {start} Alice -> Bob : start doing things during duration Bob -> Max Max : something Max -> Bob : something else {end} Bob -> Alice : finish {start} <-> {end} : some time @enduml You can use the -P command-line option to specify the pragma: java -jar plantuml.jar -Pteoz=true the following syntax. Guía de Referencia del Lenguaje PlantUML (1.2023.11) 221 / 530 10.4 Relative time 10 TIMING DIAGRAM @startuml robust "Web Browser" as WB concise "Web User" as WU @0 WU is Idle WB0 码力 | 531 页 | 7.53 MB | 1 年前3
Guía de referencia de Debian v2.124. . . . . . . 153 9.5. Mostrar los ejemplos de la hora y la fecha para el comando ”ls -l” con el time style value. . . . . . . . . . . 154 9.6. Relación de herramientas de manipulación de imágenes . nombre de la orden, Mostrar el tiempo dedicado a cada paso de la inicialización ”systemd-analyze time” Lista de todas las unidades en el momento de inicializar ”systemd-analyze blame” Cargar y detectar (ulimit, core, ...) mediante el módulo pam_linits(8) /etc/security/time.conf establecer la restricción de tiempo mediante el módulo pam_time(8) /etc/systemd/logind.conf Establece la configuración del administrador0 码力 | 285 页 | 1.43 MB | 1 年前3
PlantUML 1.2019.1 Guía de Referencia del LenguajeReferencia del Lenguaje PlantUML (1.2019.1) 87 / 146 9.3 Relative time 9 TIMING DIAGRAM 9.3 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web Browser" 89 / 146 9.7 Adding constraint 9 TIMING DIAGRAM 9.7 Adding constraint It is possible to display time constraints on the diagrams. @startuml robust "Web Browser" as WB concise "Web User" as WU WB is Lenguaje PlantUML (1.2019.1) 126 / 146 17.5 Adding date and time 17 PREPROCESSING 17.5 Adding date and time You can also expand current date and time using the special variable %date%. Date format can be0 码力 | 147 页 | 1.85 MB | 1 年前3
PlantUML 1.2019.4 Guía de Referencia del LenguajeReferencia del Lenguaje PlantUML (1.2019.4) 93 / 165 9.3 Relative time 9 TIMING DIAGRAM @enduml 9.3 Relative time It is possible to use relative time with @. @startuml robust "DNS Resolver" as DNS robust "Web {hidden} @400 WU is A3 @500 WU is {-} @enduml 9.9 Adding constraint It is possible to display time constraints on the diagrams. @startuml robust "Web Browser" as WB concise "Web User" as WU WB is Lenguaje PlantUML (1.2019.4) 144 / 165 19.5 Adding date and time 19 PREPROCESSING 19.5 Adding date and time You can also expand current date and time using the special variable %date%. Date format can be0 码力 | 166 页 | 1.82 MB | 1 年前3
共 15 条
- 1
- 2













