//! The second one, client-side by implementing check against Record Level field.
//! Each module may have its own Logger or share one.
//! The second one, client-side by implementing check against Record Level field.
//! Each module may have its own Logger or share one.
/// Designates very low priority, often extremely verbose, information
Trace,
/// Designates lower priority information
/// Designates very low priority, often extremely verbose, information
Trace,
/// Designates lower priority information
Level::Trace => nativeLevel::Trace,
Level::Debug => nativeLevel::Debug,
Level::Info => nativeLevel::Info,
Level::Trace => nativeLevel::Trace,
Level::Debug => nativeLevel::Debug,
Level::Info => nativeLevel::Info,
Level::Trace => nativeLevel::Trace,
Level::Debug => nativeLevel::Debug,
Level::Info => nativeLevel::Info,
Level::Trace => nativeLevel::Trace,
Level::Debug => nativeLevel::Debug,
Level::Info => nativeLevel::Info,
nativeLevel::Trace => Level::Trace,
nativeLevel::Debug => Level::Debug,
nativeLevel::Info => Level::Info,
nativeLevel::Trace => Level::Trace,
nativeLevel::Debug => Level::Debug,
nativeLevel::Info => Level::Info,
nativeLevel::Trace => Level::Trace,
nativeLevel::Debug => Level::Debug,
nativeLevel::Info => Level::Info,
nativeLevel::Trace => Level::Trace,
nativeLevel::Debug => Level::Debug,
nativeLevel::Info => Level::Info,
/// Utility method to constructs a new Trace-variant Level
pub extern "C" fn Level_trace() -> Level {
Level::Trace}
/// Utility method to constructs a new Trace-variant Level
pub extern "C" fn Level_trace() -> Level {
Level::Trace}
/// Checks if two Levels contain equal inner contents.
#[no_mangle]
pub extern "C" fn Level_hash(o: &Level) -> u64 {
/// Checks if two Levels contain equal inner contents.
#[no_mangle]
pub extern "C" fn Level_hash(o: &Level) -> u64 {
- std::hash::Hash::hash(&o.to_native(), &mut hasher);
- std::hash::Hasher::finish(&hasher)
+ core::hash::Hash::hash(&o.to_native(), &mut hasher);
+ core::hash::Hasher::finish(&hasher)
// We're essentially a pointer already, or at least a set of pointers, so allow us to be used
// directly as a Deref trait in higher-level structs:
// We're essentially a pointer already, or at least a set of pointers, so allow us to be used
// directly as a Deref trait in higher-level structs: