MCPcopy Create free account
hub / github.com/apache/datafusion / from

Method from

datafusion/ffi/src/session/config.rs:100–114  ·  view source on GitHub ↗
(session: &SessionConfig)

Source from the content-addressed store, hash-verified

98
99impl From<&SessionConfig> for FFI_SessionConfig {
100 fn from(session: &SessionConfig) -> Self {
101 let private_data = Box::new(SessionConfigPrivateData {
102 config: session.clone(),
103 });
104
105 let config_options = FFI_ConfigOptions::from(session.options().as_ref());
106
107 Self {
108 config_options,
109 private_data: Box::into_raw(private_data) as *mut c_void,
110 clone: clone_fn_wrapper,
111 release: release_fn_wrapper,
112 library_marker_id: crate::get_library_marker_id,
113 }
114 }
115}
116
117impl Clone for FFI_SessionConfig {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
cloneMethod · 0.45
as_refMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected