Skip to main content

load_state_field

Macro load_state_field 

Source
macro_rules! load_state_field {
    ($self:ident, $sd:expr, $prefix:expr, [$($field:ident),+ $(,)?]) => { ... };
}
Expand description

Load each named field of $self from the state dict under <prefix>.<field>. Mirrors state_field!.