pub struct CargoOracle {
pub offline: bool,
pub tests: bool,
/* private fields */
}Fields§
§offline: bool§tests: boolCheck the tests too (--tests, with the library and binaries): a transform’s proof.
Implementations§
Source§impl CargoOracle
impl CargoOracle
pub fn new(root: &Path) -> Self
Sourcepub fn workspace(&self) -> Option<&Path>
pub fn workspace(&self) -> Option<&Path>
The workspace the scratch copy mirrors, once a check has run.
pub fn root(&self) -> &Path
pub fn scratch_dir(&self) -> Option<&Path>
Sourcepub fn into_proof(self) -> Option<ProofDir>
pub fn into_proof(self) -> Option<ProofDir>
The proof place given back (its lock let go), for a proof that runs more lines on it after the checks.
pub fn touched(&self) -> &BTreeSet<PathBuf>
Source§impl CargoOracle
impl CargoOracle
Sourcepub fn check_edits(&mut self, job: &CheckJob, edits: &EditSet) -> OracleResult
pub fn check_edits(&mut self, job: &CheckJob, edits: &EditSet) -> OracleResult
Rules O2–O3 for a whole workspace’s edits at once: every package’s
gates and manifest edits written into the scratch copy, then job.
Sourcepub fn check_edits_tests(
&mut self,
job: &CheckJob,
edits: &EditSet,
tests: bool,
) -> OracleResult
pub fn check_edits_tests( &mut self, job: &CheckJob, edits: &EditSet, tests: bool, ) -> OracleResult
One check of the matrix with the edits written, its tests compiled or not (a transform compiles the tests of the crate it lands in only).
Sourcepub fn with_proof(root: &Path, proof: ProofDir) -> Self
pub fn with_proof(root: &Path, proof: ProofDir) -> Self
The oracle on a proof place already held (a proof that ran a line on the copy before its checks).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CargoOracle
impl RefUnwindSafe for CargoOracle
impl Send for CargoOracle
impl Sync for CargoOracle
impl Unpin for CargoOracle
impl UnsafeUnpin for CargoOracle
impl UnwindSafe for CargoOracle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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