Enum syntaxdot_encoders::lemma::EditTree
source · pub enum EditTree {
MatchNode {
pre: usize,
suf: usize,
left: Option<Box<EditTree>>,
right: Option<Box<EditTree>>,
},
ReplaceNode {
replacee: Vec<char>,
replacement: Vec<char>,
},
}Expand description
Enum representing a TreeNode of an Graph<TreeNode<T>,Place>.
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for EditTree
impl<'de> Deserialize<'de> for EditTree
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
impl Eq for EditTree
impl StructuralEq for EditTree
impl StructuralPartialEq for EditTree
Auto Trait Implementations§
impl RefUnwindSafe for EditTree
impl Send for EditTree
impl Sync for EditTree
impl Unpin for EditTree
impl UnwindSafe for EditTree
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.