case classTopDown[T <: TreeNode[T]](rule: PartialFunction[T, T])(implicit evidence$4: ClassTag[T]) extends TreeRewriter[T, T] with Product with Serializable
Applies the given partial function starting from the root of this tree.
Note
Note the applied rule cannot insert new parent nodes.
Linear Supertypes
Serializable, Serializable, Product, Equals, TreeRewriter[T, T], AnyRef, Any
Applies the given partial function starting from the root of this tree.
Note the applied rule cannot insert new parent nodes.