Skip to main content

SourceName

Trait SourceName 

Source
pub trait SourceName {
    // Required method
    fn source_name(&self) -> &Name;
}
Expand description

The trait for all declarations that have a source name.

Required Methods§

Source

fn source_name(&self) -> &Name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§