MCPcopy 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

30pub struct CanvasHandle(Option<Arc<CanvasImpl>>);
31impl 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

documentMethod · 0.80
getFunction · 0.50
as_refMethod · 0.45
cloneMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected