MCPcopy Create free account
hub / github.com/WayLearnLatam/Learning-Rust / Numeros

Class Numeros

7_structs_y_enums/src/main.rs:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11struct Numeros {
12 numero_1: i32,
13 numero_2: i32
14}
15
16impl Numeros { // Uso de implementaciones con struct Object method, permite aplicar funciones haciendo uso de los valores del struct de fomra directa:
17 fn suma(&self) -> i32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected