/// Determines if a log message with the specified metadata would be logged.
Determines if a log message with the specified metadata would be logged.
Determines if a log message with the specified metadata would be logged .
pub fn enabled(&self, metadata: &Metadata) -> bool {
        let level = metadata.level();
        let target = metadata.target();
        enabled(&self.directives, level, target)
    }
pub fn enabled ( & self , metadata : & Metadata ) -> bool { let level = metadata . level ( ) ; let target = metadata . target ( ) ; enabled ( & self . directives , level , target ) }
Determines if a log message with the specified metadata would be logged.
Determines if a log message with the specified metadata would be logged .
&self
metadata
&Metadata