MCPcopy Create free account
hub / github.com/angular-rust/ux-components / id

Method id

src/foundation/key.rs:36–40  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

34
35impl Key {
36 pub fn id(&self) -> Id {
37 let mut hasher = DefaultHasher::new();
38 self.hash(&mut hasher);
39 Id(hasher.finish())
40 }
41}
42// Creates a unique key whose value does not matter. .
43// Can be used in the last mile and as shadowed unique keys

Callers 6

get_markableMethod · 0.45
sizeMethod · 0.45
anchorMethod · 0.45
marginMethod · 0.45
getMethod · 0.45
runMethod · 0.45

Calls 2

IdClass · 0.85
hashMethod · 0.80

Tested by

no test coverage detected