pub fn split_module(&self) -> Option<(String, Name)> {
        let mut parts = self.key.splitn(2, '.');
        if let (Some(module), Some(local)) = (parts.next(), parts.next()) {
            Some((
                module.to_string(),
                Name {
                    key: local.to_string().into(),
                },
            ))
        } else {
            None
        }
    }
/// Check if a name is "module.local".
///
/// If so, return the module name and the local name as separate names.
Check if a name is "module.local".
If so, return the module name and the local name as separate names.
Check if a name is " module . local " . If so return the module name and the local name as separate names .
pub fn split_module(&self) -> Option<(String, Name)> {
        let mut parts = self.key.splitn(2, '.');
        if let (Some(module), Some(local)) = (parts.next(), parts.next()) {
            Some((
                module.to_string(),
                Name {
                    key: local.to_string().into(),
                },
            ))
        } else {
            None
        }
    }
pub fn split_module ( & self ) -> Option < ( String , Name ) > { let mut parts = self . key . splitn ( 2 , '.' ) ; if let ( Some ( module ) , Some ( local ) ) = ( parts . next ( ) , parts . next ( ) ) { Some ( ( module . to_string ( ) , Name { key : local . to_string ( ) . into ( ) , } , ) ) } else { None } }
Check if a name is "module.local".
Check if a name is " module . local " .
&self