#[non_exhaustive]pub struct CompileOptions {
pub resources: Option<Arc<dyn ResourceOracle>>,
}Expand description
How a Compiler compiles.
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.resources: Option<Arc<dyn ResourceOracle>>The oracle the Reference fields are checked against. None, the
default, checks nothing.
Implementations§
Source§impl CompileOptions
impl CompileOptions
Sourcepub fn resources(self, oracle: Arc<dyn ResourceOracle>) -> Self
pub fn resources(self, oracle: Arc<dyn ResourceOracle>) -> Self
Checks the Reference fields against oracle.
Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§impl Debug for CompileOptions
impl Debug for CompileOptions
Auto Trait Implementations§
impl !RefUnwindSafe for CompileOptions
impl !UnwindSafe for CompileOptions
impl Freeze for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
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