-
-
Notifications
You must be signed in to change notification settings - Fork 27
Mutations
Martin Pool edited this page Apr 24, 2022
·
2 revisions
This doc is not yet complete.
Functions called new
, and implementations of Default
are skipped
because it seems like there is often no other good way to create an instance.
Functions whose body is empty (aside from comments) are also skipped, because we don't have any way to change either their return value (unit) or their side effects (nothing).
(See src/mutate.rs
and src/visit.rs
for the code that generates mutations.)
Function return type | Mutations |
---|---|
() |
() |
bool |
true , false
|
String |
String::new , "xyzzy".to_string()
|
Result<_, > |
Ok(Default::default()) |
(anything else) | Default::default() |