pub struct SubtreeMutation {
pub grammar: Grammar,
pub subtree_depth: usize,
pub max_depth: usize,
pub max_len: usize,
}Expand description
Subtree mutation: replace a random subtree by a grown tree of at most subtree_depth
levels, unless that breaks the limits.
Fields§
§grammar: GrammarThe language.
subtree_depth: usizeThe depth of the new subtree.
max_depth: usizeThe largest depth of the result.
max_len: usizeThe largest number of nodes of the result.
Trait Implementations§
Source§impl Clone for SubtreeMutation
impl Clone for SubtreeMutation
Source§impl Debug for SubtreeMutation
impl Debug for SubtreeMutation
impl Eq for SubtreeMutation
Source§impl PartialEq for SubtreeMutation
impl PartialEq for SubtreeMutation
impl StructuralPartialEq for SubtreeMutation
Auto Trait Implementations§
impl Forget for SubtreeMutation
impl Freeze for SubtreeMutation
impl Move for SubtreeMutation
impl RefUnwindSafe for SubtreeMutation
impl Send for SubtreeMutation
impl Sync for SubtreeMutation
impl Unpin for SubtreeMutation
impl UnsafeUnpin for SubtreeMutation
impl UnwindSafe for SubtreeMutation
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