pub(super) fn extract_module_name(name: &str) -> Option<String> {
    let path: &Path = name.as_ref();
    // return None if extension isn't "wasm"
    path.extension().filter(|ext| ext == &"wasm")?;
    // strip extension
    path.file_stem()?.to_string_lossy().to_string().into()
}
/// Return file name with .wasm extension stripped. None if extension wasn't .wasm
Return file name with .wasm extension stripped. None if extension wasn't .wasm
Return file name with . wasm extension stripped . None if extension wasn ' t . wasm
pub(super) fn extract_module_name(name: &str) -> Option<String> {
    let path: &Path = name.as_ref();
    // return None if extension isn't "wasm"
    path.extension().filter(|ext| ext == &"wasm")?;
    // strip extension
    path.file_stem()?.to_string_lossy().to_string().into()
}
pub ( super ) fn extract_module_name ( name : & str ) -> Option < String > { let path : & Path = name . as_ref ( ) ; // return None if extension isn't "wasm" path . extension ( ) . filter ( | ext | ext == & " " ) ? ; // strip extension path . file_stem ( ) ? . to_string_lossy ( ) . to_string ( ) . into ( ) }
Return file name with .wasm extension stripped.
Return file name with . wasm extension stripped .
name
&str