You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow writing `_: { /* any number of statements */ }` in initializers to
run arbitrary code during initialization. It also allows declaring
values that can be used later in the initializer:
init!(MyStruct {
_: {
let val = if check_something() {
42
} else {
0
};
},
foo: Foo::new(val),
})
Signed-off-by: Benno Lossin <[email protected]>
0 commit comments