Checks if the two Option
s are both None
or some equal values as per
eq_fn
.
Checks if the two Option
s are both Some
and pass the predicate function.
Counts how many elements of the slices are equal as per eq_fn
.
Checks if two expressions evaluate to the same value, and don’t contain any side effects.
Returns the segments of a path that might have generic parameters.
Usually just the last segment for free items, except for when the path resolves to an associated
item, in which case it is the last two
Checks if two slices are equal as per eq_fn
.
Some simple reductions like { return }
=> return