impl_cvlr_log_for_struct

Macro impl_cvlr_log_for_struct 

Source
macro_rules! impl_cvlr_log_for_struct {
    ($prop:path $(, $field:ident)* $(,)?) => { ... };
    (@field $self:ident, $logger:ident, $field:ident) => { ... };
}
Expand description

Implements CvlrLog trait given a struct and a list of fields

Example usage

use cvlr_log::impl_cvlr_log_for_struct;
struct Foo {
    x: u64,
    y: u64,
}
impl_cvlr_log_for_struct!(Foo, x, y,);