pub struct LocalResourceCache { /* private fields */ }Implementations§
Source§impl LocalResourceCache
impl LocalResourceCache
pub fn next_generation(&self) -> ResourceGeneration
pub fn insert_sources( &self, generation: ResourceGeneration, material: SourceCatalogMaterial, )
pub fn source_material( &self, generation: ResourceGeneration, ) -> Option<SourceCatalogMaterial>
pub fn insert_index( &self, generation: ResourceGeneration, material: CodeIndexMaterial, )
pub fn index_material( &self, generation: ResourceGeneration, ) -> Option<Arc<CodeIndexMaterial>>
Trait Implementations§
Source§impl Clone for LocalResourceCache
impl Clone for LocalResourceCache
Source§fn clone(&self) -> LocalResourceCache
fn clone(&self) -> LocalResourceCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LocalResourceCache
impl Default for LocalResourceCache
Source§fn default() -> LocalResourceCache
fn default() -> LocalResourceCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalResourceCache
impl RefUnwindSafe for LocalResourceCache
impl Send for LocalResourceCache
impl Sync for LocalResourceCache
impl Unpin for LocalResourceCache
impl UnsafeUnpin for LocalResourceCache
impl UnwindSafe for LocalResourceCache
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more