pub struct SourceFileRef { /* private fields */ }Expand description
Reference to a single SourceFile instance in a given SourceMap.
Implementations§
Source§impl SourceFileRef
impl SourceFileRef
pub fn get<'a>(&'a self, source_map: &'a SourceMap) -> &'a SourceFile
Trait Implementations§
Source§impl Clone for SourceFileRef
impl Clone for SourceFileRef
Source§fn clone(&self) -> SourceFileRef
fn clone(&self) -> SourceFileRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceFileRef
impl Debug for SourceFileRef
Source§impl Default for SourceFileRef
impl Default for SourceFileRef
Source§fn default() -> SourceFileRef
fn default() -> SourceFileRef
Returns the “default value” for a type. Read more
Source§impl Hash for SourceFileRef
impl Hash for SourceFileRef
Source§impl Ord for SourceFileRef
impl Ord for SourceFileRef
Source§fn cmp(&self, other: &SourceFileRef) -> Ordering
fn cmp(&self, other: &SourceFileRef) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceFileRef
impl PartialEq for SourceFileRef
Source§impl PartialOrd for SourceFileRef
impl PartialOrd for SourceFileRef
impl Copy for SourceFileRef
impl Eq for SourceFileRef
impl StructuralPartialEq for SourceFileRef
Auto Trait Implementations§
impl Freeze for SourceFileRef
impl RefUnwindSafe for SourceFileRef
impl Send for SourceFileRef
impl Sync for SourceFileRef
impl Unpin for SourceFileRef
impl UnwindSafe for SourceFileRef
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
Mutably borrows from an owned value. Read more