Closed EATSTEAK closed 1 month ago
ElementDef
SubElementDef
body_hash: u64
impl Element
Body
scraper::ElementRef
body_hash
정말 필요할까..? 성능 향상은 추후에 타겟팅 할 것
ElementDef
,SubElementDef
에서 노드 ID 기반 엘리먼트 생성을 수행할 때body_hash: u64
를 필요로 하는데, 다양한 상황에서ElementDef
와SubElementDef
가 생성될 수 있음(예:impl Element
->ElementDef
)Body
와 lifetime이 같은scraper::ElementRef
를body_hash
와 함께 전달하여 편리하게 레퍼런스로 사용할 수 있도록 수정