pub enum IgnoredDefault {
Const(Value),
CopyField {
name: String,
index: usize,
},
Native(Closure),
}Expand description
The default of an ignored field — how the field is refilled
wherever a value is materialized without it (design §3.7).
Const and CopyField are the serializable vocabulary of the
descriptor JSON (fixtures are data, not code — impl plan §4 step 6);
Native is an arbitrary thunk supplied by the embedder, which is
what a Soil-level default expression eventually compiles to and is
not serializable.
Variants§
Const(Value)
A constant of the field’s own (scalar) shape.
CopyField
Copy another (non-ignored, same-shaped) field’s value.
Fields
Native(Closure)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IgnoredDefault
impl !RefUnwindSafe for IgnoredDefault
impl !Send for IgnoredDefault
impl !Sync for IgnoredDefault
impl Unpin for IgnoredDefault
impl UnsafeUnpin for IgnoredDefault
impl !UnwindSafe for IgnoredDefault
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