pub struct ArtifactDecodeCache { /* private fields */ }Expand description
Per-run, type-erased cache for decoded artifacts used by in-process rules.
The engine only carries this cache through dispatch; individual plugins own the artifact format and decoded type they store in it.
Implementations§
Source§impl ArtifactDecodeCache
impl ArtifactDecodeCache
pub fn get_or_try_insert_with<T>( &self, id: NodeId, format: &ArtifactFormat, load: impl FnOnce() -> BinocResult<Option<T>>, ) -> BinocResult<Option<Arc<T>>>
Trait Implementations§
Source§impl Default for ArtifactDecodeCache
impl Default for ArtifactDecodeCache
Source§fn default() -> ArtifactDecodeCache
fn default() -> ArtifactDecodeCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ArtifactDecodeCache
impl RefUnwindSafe for ArtifactDecodeCache
impl Send for ArtifactDecodeCache
impl Sync for ArtifactDecodeCache
impl Unpin for ArtifactDecodeCache
impl UnsafeUnpin for ArtifactDecodeCache
impl UnwindSafe for ArtifactDecodeCache
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