Skip to main content

Crate returns

Crate returns 

Source

Macrosยง

return_default
Returns the default value of T that means it returns <T as Default>::default() in situations where default values sound more propper than panics in debug mode or situations that default values can be actually usefull
return_shit
Works like a compiler silencer, returns (never) value ! to the compiler which coerces into any type T in favor of making the compiler silent while prototyping in situations where you need to continue the architecture and you do not care about the returned value yet