Skip to main content

compute_node_features

Function compute_node_features 

Source
pub(crate) fn compute_node_features(nt: &NodeType) -> (u64, u64)
Expand description

要素 1 個の特徴(タグ・id・class・全属性)の 128 ビットハッシュを計算する。 dom::Node の生成時および属性変更時に 1 度だけ計算して Node::features_hash に保持する(TODO P5a)。