Struct proc_macro::SourceFile
source · pub struct SourceFile(_);
🔬This is a nightly-only experimental API. (
proc_macro_span
#54725)Expand description
给定 Span
的源文件。
Implementations§
Trait Implementations§
source§impl Clone for SourceFile
impl Clone for SourceFile
source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for SourceFile
impl Debug for SourceFile
source§impl PartialEq<SourceFile> for SourceFile
impl PartialEq<SourceFile> for SourceFile
impl Eq for SourceFile
Auto Trait Implementations§
impl RefUnwindSafe for SourceFile
impl !Send for SourceFile
impl !Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中借用。 Read more