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

Method clone

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected