pub struct SubtreeFeature {
pub hash: FeatureHash,
pub node_count: usize,
pub range: ByteRange,
}Expand description
One subtree fingerprint: a Merkle hash over an IR subtree.
hash(node) covers the node’s shape tag, its native kind name and its
children’s hashes in order — names and tokens are excluded, so two
subtrees match exactly when their shapes match node for node.
Fields§
§hash: FeatureHashThe subtree’s Merkle hash.
node_count: usizeNumber of nodes in the subtree, its root included.
range: ByteRangeSource bytes the subtree root covers; reporting only.
Trait Implementations§
Source§impl Clone for SubtreeFeature
impl Clone for SubtreeFeature
Source§fn clone(&self) -> SubtreeFeature
fn clone(&self) -> SubtreeFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubtreeFeature
impl Debug for SubtreeFeature
impl Eq for SubtreeFeature
Source§impl PartialEq for SubtreeFeature
impl PartialEq for SubtreeFeature
impl StructuralPartialEq for SubtreeFeature
Auto Trait Implementations§
impl Freeze for SubtreeFeature
impl RefUnwindSafe for SubtreeFeature
impl Send for SubtreeFeature
impl Sync for SubtreeFeature
impl Unpin for SubtreeFeature
impl UnsafeUnpin for SubtreeFeature
impl UnwindSafe for SubtreeFeature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.