MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_raw_const

Method new_raw_const

crates/vm/src/function/method.rs:91–103  ·  view source on GitHub ↗
(
        name: &'static str,
        func: impl PyNativeFn,
        flags: PyMethodFlags,
        doc: Option<&'static str>,
    )

Source from the content-addressed store, hash-verified

89
90 #[inline]
91 pub const fn new_raw_const(
92 name: &'static str,
93 func: impl PyNativeFn,
94 flags: PyMethodFlags,
95 doc: Option<&'static str>,
96 ) -> Self {
97 Self {
98 name,
99 func: super::static_raw_func(func),
100 flags,
101 doc,
102 }
103 }
104
105 pub fn to_proper_method(
106 &'static self,

Callers

nothing calls this directly

Calls 1

static_raw_funcFunction · 0.85

Tested by

no test coverage detected