pub struct RustcInputPrediction {
pub version: u8,
pub inputs: Vec<String>,
pub environment: Vec<String>,
}Expand description
Normalized input names from the last successful execution of one modeled rustc invocation.
Fields§
§version: u8§inputs: Vec<String>§environment: Vec<String>Implementations§
Source§impl RustcInputPrediction
impl RustcInputPrediction
Sourcepub fn discover(
&self,
working_dir: &Path,
path_mappings: &[PathMapping],
) -> Result<DiscoveredInputs, BypassReason>
pub fn discover( &self, working_dir: &Path, path_mappings: &[PathMapping], ) -> Result<DiscoveredInputs, BypassReason>
Rehash the predicted paths and read the current environment. The caller still recomputes the full action digest, so changed inputs are misses.
Trait Implementations§
Source§impl Clone for RustcInputPrediction
impl Clone for RustcInputPrediction
Source§fn clone(&self) -> RustcInputPrediction
fn clone(&self) -> RustcInputPrediction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustcInputPrediction
impl Debug for RustcInputPrediction
Source§impl<'de> Deserialize<'de> for RustcInputPrediction
impl<'de> Deserialize<'de> for RustcInputPrediction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RustcInputPrediction
Source§impl PartialEq for RustcInputPrediction
impl PartialEq for RustcInputPrediction
Source§impl Serialize for RustcInputPrediction
impl Serialize for RustcInputPrediction
impl StructuralPartialEq for RustcInputPrediction
Auto Trait Implementations§
impl Freeze for RustcInputPrediction
impl RefUnwindSafe for RustcInputPrediction
impl Send for RustcInputPrediction
impl Sync for RustcInputPrediction
impl Unpin for RustcInputPrediction
impl UnsafeUnpin for RustcInputPrediction
impl UnwindSafe for RustcInputPrediction
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