Struct ethers_solc::OutputContext
source · [−]#[non_exhaustive]pub struct OutputContext<'a> {
pub cache: Cow<'a, SolFilesCache>,
}
Expand description
Additional context to use during ArtifactOutput::on_output()
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cache: Cow<'a, SolFilesCache>
Cache file of the project or empty if no caching is enabled
This context is required for partially cached recompile with conflicting files, so that we can use the same adjusted output path for conflicting files like:
src
├── a.sol
└── inner
└── a.sol
Implementations
sourceimpl<'a> OutputContext<'a>
impl<'a> OutputContext<'a>
sourcepub fn new(cache: &'a SolFilesCache) -> Self
pub fn new(cache: &'a SolFilesCache) -> Self
Create a new context with the given cache file
Trait Implementations
sourceimpl<'a> Clone for OutputContext<'a>
impl<'a> Clone for OutputContext<'a>
sourcefn clone(&self) -> OutputContext<'a>
fn clone(&self) -> OutputContext<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for OutputContext<'a>
impl<'a> Debug for OutputContext<'a>
sourceimpl<'a> Default for OutputContext<'a>
impl<'a> Default for OutputContext<'a>
sourcefn default() -> OutputContext<'a>
fn default() -> OutputContext<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for OutputContext<'a>
impl<'a> Send for OutputContext<'a>
impl<'a> Sync for OutputContext<'a>
impl<'a> Unpin for OutputContext<'a>
impl<'a> UnwindSafe for OutputContext<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more