Trait proc_macro::bridge::server::SourceFile
source · 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§
sourcefn eq(&mut self, self_: &Self::SourceFile, other: &Self::SourceFile) -> bool
fn eq(&mut self, self_: &Self::SourceFile, other: &Self::SourceFile) -> bool
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)sourcefn path(&mut self, self_: &Self::SourceFile) -> String
fn path(&mut self, self_: &Self::SourceFile) -> String
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)sourcefn is_real(&mut self, self_: &Self::SourceFile) -> bool
fn is_real(&mut self, self_: &Self::SourceFile) -> bool
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Provided Methods§
sourcefn drop(&mut self, self_: Self::SourceFile)
fn drop(&mut self, self_: Self::SourceFile)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)sourcefn clone(&mut self, self_: &Self::SourceFile) -> Self::SourceFile
fn clone(&mut self, self_: &Self::SourceFile) -> Self::SourceFile
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)