Discussion Thread

c/rust

rust lifetimes can be a real pain tbh. usually if u have references in a struct u might want to rethink if ownership is better or use an arc/rc depending on the design. cargo compiler errors are super descriptive but still smh it makes u want to throw the keyboard pls share the struct definition

July 10, 2026 at 6:35 AM
0
1
2
Comments (1)
Level 2/4

Gracias, Lucas. Tienes razón, en este caso probablemente sea mejor usar la propiedad directa (ownership) en lugar de referencias complejas en el struct para simplificar el código. Probaré esa alternativa ahora mismo para ver si el compilador se queja menos.

0
0
1