MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / clone

Method clone

src/core/array.rs:691–700  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

689 T: HasAfEnum,
690{
691 fn clone(&self) -> Self {
692 unsafe {
693 let mut temp: af_array = std::ptr::null_mut();
694 let ret_val = af_retain_array(&mut temp as *mut af_array, self.handle);
695 match ret_val {
696 0 => temp.into(),
697 _ => panic!("Weak copy of Array failed with error code: {}", ret_val),
698 }
699 }
700 }
701}
702
703/// To free resources when Array goes out of scope

Callers 10

convertMethod · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45
access_using_rwlockFunction · 0.45
accum_using_channelFunction · 0.45
view_macroFunction · 0.45
acoustic_wave_simulationFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

intoMethod · 0.80

Tested by 4

access_using_rwlockFunction · 0.36
accum_using_channelFunction · 0.36
view_macroFunction · 0.36