override
Parameters
- self:*const CellOptions
- *const CellOptions
- over:CellOptions
- CellOptions
Source
Implementation
pub fn override(self: *const CellOptions, over: CellOptions) CellOptions {
var ret = self.*;
inline for (@typeInfo(CellOptions).@"struct".fields) |f| {
if (@field(over, f.name)) |fval| {
@field(ret, f.name) = fval;
}
}
return ret;
}