MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / key

Method key

src/renderer.rs:100–105  ·  view source on GitHub ↗

Returns a unique key string for this asset (the path or file name).

(&self)

Source from the content-addressed store, hash-verified

98impl FontAsset {
99 /// Returns a unique key string for this asset (the path or file name).
100 pub fn key(&self) -> &'static str {
101 match self {
102 FontAsset::Path(path) => path,
103 FontAsset::Bytes { file_name, .. } => file_name,
104 }
105 }
106}
107
108/// Global FontManager. Manages font loading, caching, and eviction.

Callers 9

newMethod · 0.80
font_heightMethod · 0.80
getMethod · 0.80
metricsMethod · 0.80
load_defaultMethod · 0.80
ensureMethod · 0.80
is_loadedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected