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

Method get

node-graph/libraries/canvas-utils/src/wasm.rs:35–40  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

33 Self(None)
34 }
35 fn get(&mut self) -> &CanvasImpl {
36 if self.0.is_none() {
37 self.0 = Some(Arc::new(CanvasImpl::new()));
38 }
39 self.0.as_ref().unwrap()
40 }
41}
42impl Canvas for CanvasHandle {
43 fn id(&mut self) -> CanvasId {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected