pub const unsafe fn new(name: &'static str) -> Self {
        #[allow(deprecated)]
        let mut init = ffi::PyModuleDef_INIT;
        init.m_name = name.as_ptr() as *const _;
        ModuleDef(UnsafeCell::new(init))
    }
/// Make new module defenition with given module name.
///
/// # Safety
/// `name` must be a null-terminated string.
Make new module defenition with given module name.
Make new module defenition with given module name .
pub const unsafe fn new(name: &'static str) -> Self {
        #[allow(deprecated)]
        let mut init = ffi::PyModuleDef_INIT;
        init.m_name = name.as_ptr() as *const _;
        ModuleDef(UnsafeCell::new(init))
    }
pub const unsafe fn new ( name : & ' static str ) -> Self { # [ allow ( deprecated ) ] let mut init = ffi :: PyModuleDef_INIT ; init . m_name = name . as_ptr ( ) as * const _ ; ModuleDef ( UnsafeCell :: new ( init ) ) }
Make new module defenition with given module name.
Make new module defenition with given module name .
name
&'static str
name
&'static str
safety
`name` must be a null-terminated string.
` name ` must be a null - terminated string .