Open theguy147 opened 2 years ago
After applying the patch from the PR I created in #3 the output is now as I would expect it to be:
MyStruct {
field_1: 2,
field_2: 0,
}
MyStruct {
field_1: 253,
field_2: 0,
}
MyStruct {
field_1: 125,
field_2: 0,
}
MyStruct {
field_1: 253,
field_2: 0,
}
MyStruct {
field_1: 2,
field_2: 0,
}
MyStruct {
field_1: 253,
field_2: 0,
}
MyStruct {
field_1: 255,
field_2: 0,
}
Here in the wiki it says:
Nevertheless the fields are not ignored by the mutator (they are only ignored during field initialization).
Here is a little program (adapted from the README) that shows this behavior:
And this is a sample output:
As you can see the
field_2
should be ignored by the mutator (according to the wiki), but it is still mutated...EDIT: I tested this behavior with lain versions 0.5 and 0.5.5