pub enum FieldSetup {
Init {
field: String,
value: ExprId,
},
ParamCopy {
field: String,
param: Box<TypedParam>,
},
Reset {
field: String,
},
}Expand description
One step of a constructor’s field-setup sequence, run after super(...)
(or at the top of a base class’s init fn): own-field initializers and
parameter-property copies, in execution order.
Variants§
Init
this.field = <initializer expr>.
ParamCopy
Read the current parameter storage after defaults, including captured cells.
Reset
this.field = undefined for an optional field that redeclares an inherited
one with no initializer of its own. The slot is the parent’s, so without
this it would keep the parent’s initialized value.
Trait Implementations§
Source§impl Clone for FieldSetup
impl Clone for FieldSetup
Auto Trait Implementations§
impl Freeze for FieldSetup
impl RefUnwindSafe for FieldSetup
impl Send for FieldSetup
impl Sync for FieldSetup
impl Unpin for FieldSetup
impl UnsafeUnpin for FieldSetup
impl UnwindSafe for FieldSetup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more