pub struct CompilationCacheParamsBuilder { /* private fields */ }Expand description
Builder for CompilationCacheParams.
Implementations§
Source§impl CompilationCacheParamsBuilder
impl CompilationCacheParamsBuilder
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL of the script to produce a compilation cache entry for.
Sourcepub fn eager<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn eager<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
A hint to the backend whether eager compilation is recommended. (the actual compilation mode used is upon backend discretion).
Sourcepub fn build(
&self,
) -> Result<CompilationCacheParams, CompilationCacheParamsBuilderError>
pub fn build( &self, ) -> Result<CompilationCacheParams, CompilationCacheParamsBuilderError>
Trait Implementations§
Source§impl Clone for CompilationCacheParamsBuilder
impl Clone for CompilationCacheParamsBuilder
Source§fn clone(&self) -> CompilationCacheParamsBuilder
fn clone(&self) -> CompilationCacheParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for CompilationCacheParamsBuilder
impl RefUnwindSafe for CompilationCacheParamsBuilder
impl Send for CompilationCacheParamsBuilder
impl Sync for CompilationCacheParamsBuilder
impl Unpin for CompilationCacheParamsBuilder
impl UnsafeUnpin for CompilationCacheParamsBuilder
impl UnwindSafe for CompilationCacheParamsBuilder
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