MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / clone

Method clone

flow-message/src/c.rs:43–50  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

41
42impl Clone for Message {
43 fn clone(&self) -> Self {
44 let inner = self.0.as_ref().unwrap();
45 Message(Some(CMessage {
46 ptr: (inner.clone_func)(inner.ptr),
47 clone_func: inner.clone_func,
48 release_func: inner.release_func,
49 }))
50 }
51}
52
53impl From<CMessage> for Message {

Callers 15

execMethod · 0.45
execMethod · 0.45
startMethod · 0.45
execMethod · 0.45
describe_responsesMethod · 0.45
find_lib_from_pythonFunction · 0.45
newMethod · 0.45
create_with_typeFunction · 0.45
new_abbrMethod · 0.45
git_clone_allFunction · 0.45
from_dataFunction · 0.45
__iter__Method · 0.45

Calls 2

MessageClass · 0.85
as_refMethod · 0.80

Tested by

no test coverage detected