Skip to main content

AsSubject

Trait AsSubject 

Source
pub trait AsSubject: Display {
    // Required method
    fn subject(&self) -> Subject<'_>;
}
Expand description

Extension trait for types that can be used as a log subject.

Required Methods§

Source

fn subject(&self) -> Subject<'_>

Return a Subject for this ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§