pub enum TransformScope {
Node,
Subtree,
}Expand description
Scope at which a transformer operates.
Variants§
Node
Transformer receives individual matched nodes; controller recurses into children.
Subtree
Transformer receives the whole subtree; controller does NOT recurse.
Trait Implementations§
Source§impl Clone for TransformScope
impl Clone for TransformScope
Source§fn clone(&self) -> TransformScope
fn clone(&self) -> TransformScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransformScope
impl Debug for TransformScope
Source§impl Default for TransformScope
impl Default for TransformScope
Source§fn default() -> TransformScope
fn default() -> TransformScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformScope
impl<'de> Deserialize<'de> for TransformScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TransformScope
impl PartialEq for TransformScope
Source§impl Serialize for TransformScope
impl Serialize for TransformScope
impl Copy for TransformScope
impl Eq for TransformScope
impl StructuralPartialEq for TransformScope
Auto Trait Implementations§
impl Freeze for TransformScope
impl RefUnwindSafe for TransformScope
impl Send for TransformScope
impl Sync for TransformScope
impl Unpin for TransformScope
impl UnsafeUnpin for TransformScope
impl UnwindSafe for TransformScope
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