Comprehensive Rust(Español) 202412divide_in_two(n: i32) -> Result { if n % 2 == 0 { Result::Ok(n / 2) } else { Result::Err(format!("no se puede dividir {n} en dos partes iguales")) } } fn main() { let n = 100; match divide_in_two(n) { compilador de Rust al confirmar que se gestionan todos los casos. • Guarda el resultado de divide_in_two en la variable result y hazlo coincidir mediante match en un bucle. No se compilará porque se utilizará ")); assert!(!luhn(" ")); } fn test_single_digit_cc_number() { assert!(!luhn("0")); } fn test_two_digit_cc_number() { assert!(luhn(" 0 0 ")); } } 174 Parte VIII Día 4: Tarde 175 Capítulo 280 码力 | 389 页 | 1.04 MB | 11 月前3
PlantUML 1.2023.11 Guía de Referencia del Lenguajeclass color and style (inline style) You can change the color or style of individual class using the two following notations: • #color ##[style]color With background color first (#color), then line style object Foo map Bar { abc=> def=> } object Baz Bar::abc --> Baz : Label one Foo --> Bar::def : Label two @enduml [Ref. #307] 4.7 Program (or project) evaluation and review technique (PERT) with map You to denote goto processing, with: • label• goto @startuml title Point two queries to same activity\nwith `goto` start if (Test Question?) then (yes) 'space label only for alignment 0 码力 | 531 页 | 7.53 MB | 1 年前3
PlantUML 1.2021.3 Guía de Referencia del Lenguajeskinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else "\\uD83D\\uDE10": "\uD83D\uDE10", "": "" } @endjson 11.6.2 JSON two-character escape sequence @startjson { "**legend**: character name": ["**two-character escape sequence**", "example (between 'a' and 'b')"]0 码力 | 407 页 | 4.28 MB | 1 年前3
PlantUML 1.2021.2 Guía de Referencia del Lenguajeskinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else "\\uD83D\\uDE10": "\uD83D\uDE10", "": "" } @endjson 11.6.2 JSON two-character escape sequence @startjson { "**legend**: character name": ["**two-character escape sequence**", "example (between 'a' and 'b')"]0 码力 | 389 页 | 4.12 MB | 1 年前3
PlantUML 1.2021.1 Guía de Referencia del Lenguajeskinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else "\\uD83D\\uDE10": "\uD83D\uDE10", "": "" } @endjson 11.6.2 JSON two-character escape sequence @startjson { "**legend**: character name": ["**two-character escape sequence**", "example (between 'a' and 'b')"]0 码力 | 384 页 | 4.07 MB | 1 年前3
PlantUML 1.2020.23 Guía de Referencia del Lenguajeskinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else -- to separate sets of tasks. @startgantt [Task1] lasts 10 days then [Task2] lasts 4 days -- Phase Two -- then [Task3] lasts 5 days then [Task4] lasts 6 days @endgantt 10.15 Working with resources You0 码力 | 305 页 | 3.11 MB | 1 年前3
PlantUML 1.2020.22 Guía de Referencia del Lenguajeskinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle diamond :A; if (decision) then (yes) :B1; else skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else (no) endif :C; @enduml • With two branchs (B1, B2) @startuml skinparam ConditionEndStyle hline :A; if (decision) then (yes) :B1; else -- to separate sets of tasks. @startgantt [Task1] lasts 10 days then [Task2] lasts 4 days -- Phase Two -- then [Task3] lasts 5 days then [Task4] lasts 6 days @endgantt 10.15 Working with resources You0 码力 | 293 页 | 3.02 MB | 1 年前3
PlantUML 1.2019.6 Guía de Referencia del Lenguaje-- to separate sets of tasks. @startgantt [Task1] lasts 10 days then [Task2] lasts 4 days -- Phase Two -- then [Task3] lasts 5 days then [Task4] lasts 6 days @endgantt 10.10 Working with resources You Arithmetic notation 12 WORK BREAKDOWN STRUCTURE + Part One + Task 1.1 - LeftTask 1.2 + Task 1.3 + Part Two + Task 2.1 + Task 2.2 -_ Task 2.2.1 To the left boxless -_ Task 2.2.2 To the Left boxless +_ Task 2 How is this working ? 13 MATHS 13.2 How is this working ? To draw those formulas, PlantUML uses two OpenSource projects: • AsciiMath that converts AsciiMath notation to LaTeX expression. • JLatexMath0 码力 | 172 页 | 1.91 MB | 1 年前3
PlantUML 1.2019.9 Guía de Referencia del Lenguaje-- to separate sets of tasks. @startgantt [Task1] lasts 10 days then [Task2] lasts 4 days -- Phase Two -- then [Task3] lasts 5 days then [Task4] lasts 6 days @endgantt 10.10 Working with resources You Arithmetic notation 12 WORK BREAKDOWN STRUCTURE + Part One + Task 1.1 - LeftTask 1.2 + Task 1.3 + Part Two + Task 2.1 + Task 2.2 -_ Task 2.2.1 To the left boxless -_ Task 2.2.2 To the Left boxless +_ Task 2 How is this working ? 13 MATHS 13.2 How is this working ? To draw those formulas, PlantUML uses two OpenSource projects: • AsciiMath that converts AsciiMath notation to LaTeX expression. • JLatexMath0 码力 | 172 页 | 1.93 MB | 1 年前3
PlantUML 1.2019.4 Guía de Referencia del Lenguaje-- to separate sets of tasks. @startgantt [Task1] lasts 10 days then [Task2] lasts 4 days -- Phase Two -- then [Task3] lasts 5 days then [Task4] lasts 6 days @endgantt 10.10 Working with resources You Arithmetic notation 12 WORK BREAKDOWN STRUCTURE + Part One + Task 1.1 - LeftTask 1.2 + Task 1.3 + Part Two + Task 2.1 + Task 2.2 -_ Task 2.2.1 To the left boxless -_ Task 2.2.2 To the Left boxless +_ Task 2 How is this working ? 13 MATHS 13.2 How is this working ? To draw those formulas, PlantUML uses two OpenSource projects: • AsciiMath that converts AsciiMath notation to LaTeX expression. • JLatexMath0 码力 | 166 页 | 1.82 MB | 1 年前3
共 14 条
- 1
- 2













