Struct apollo_compiler::database::SourceCache  
source · pub struct SourceCache { /* private fields */ }Expand description
A Cache implementation for ariadne diagnostics.
Use InputDatabase::source_cache to construct one.
Trait Implementations§
source§impl Cache<FileId> for &SourceCache
 
impl Cache<FileId> for &SourceCache
source§impl Clone for SourceCache
 
impl Clone for SourceCache
source§fn clone(&self) -> SourceCache
 
fn clone(&self) -> SourceCache
Returns a copy 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 SourceCache
 
impl Debug for SourceCache
source§impl PartialEq<SourceCache> for SourceCache
 
impl PartialEq<SourceCache> for SourceCache
source§fn eq(&self, other: &SourceCache) -> bool
 
fn eq(&self, other: &SourceCache) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for SourceCache
impl StructuralEq for SourceCache
impl StructuralPartialEq for SourceCache
Auto Trait Implementations§
impl RefUnwindSafe for SourceCache
impl Send for SourceCache
impl Sync for SourceCache
impl Unpin for SourceCache
impl UnwindSafe for SourceCache
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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.