MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / clone

Method clone

Source Code/22-25.rs:7–7  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

5 struct S {}
6 impl Clone for S {
7 fn clone(&self) -> Self { Self {} }
8 }
9 let s = S {};
10 let _ = s.clone();

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected