Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GraphiteEditor/Graphite
/ new
Method
new
node-graph/libraries/canvas-utils/src/wasm.rs:32–34 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
pub struct CanvasHandle(Option<Arc<CanvasImpl>>);
31
impl CanvasHandle {
32
pub fn new() -> Self {
33
Self(None)
34
}
35
fn get(&mut self) -> &CanvasImpl {
36
if self.0.is_none() {
37
self.0 = Some(Arc::new(CanvasImpl::new()));
Callers
nothing calls this directly
Calls
5
document
Method · 0.80
get
Function · 0.50
as_ref
Method · 0.45
clone
Method · 0.45
as_str
Method · 0.45
Tested by
no test coverage detected