pub trait SourceFile: Types {
    // Required methods
    fn eq(&mut self, self_: &Self::SourceFile, other: &Self::SourceFile) -> bool;
    fn path(&mut self, self_: &Self::SourceFile) -> String;
    fn is_real(&mut self, self_: &Self::SourceFile) -> bool;

    // Provided methods
    fn drop(&mut self, self_: Self::SourceFile) { ... }
    fn clone(&mut self, self_: &Self::SourceFile) -> Self::SourceFile { ... }
}
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Required Methods§

source

fn eq(&mut self, self_: &Self::SourceFile, other: &Self::SourceFile) -> bool

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source

fn path(&mut self, self_: &Self::SourceFile) -> String

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source

fn is_real(&mut self, self_: &Self::SourceFile) -> bool

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Provided Methods§

source

fn drop(&mut self, self_: Self::SourceFile)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source

fn clone(&mut self, self_: &Self::SourceFile) -> Self::SourceFile

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Implementors§