MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / calculate_hash

Function calculate_hash

frontend/wrapper/src/helpers.rs:203–209  ·  view source on GitHub ↗
(t: &T)

Source from the content-addressed store, hash-verified

201 t.hash(&mut hasher);
202 hasher.finish()
203}
204
205/// Translate a keyboard key from its JS name to its Rust `Key` enum
206#[cfg(feature = "editor")]
207pub(crate) fn translate_key(name: &str) -> Key {
208 use Key::*;
209
210 trace!("Key event received: {name}");
211
212 match name {

Callers 1

Calls 2

hashMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected