Skip to main content

HasSource

Trait HasSource 

Source
pub trait HasSource {
    // Required method
    fn source(&self) -> SourceIdentifier;
}
Expand description

Trait for items that have a source.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: HasSource> HasSource for Box<T>

Implementors§