Skip to main content

Model

Struct Model 

Source
pub(super) struct Model {
    pub reference: String,
    pub directory: PathBuf,
    pub precisions: Vec<u8>,
    pub source_directory: Option<PathBuf>,
}
Expand description

Pinned index entry and its currently selected prepared artifact.

Fields§

§reference: String§directory: PathBuf§precisions: Vec<u8>§source_directory: Option<PathBuf>

Original local checkpoint, used to recognize reports made before the index.

Implementations§

Source§

impl Model

Source

pub(super) fn inspect( binary: &Path, selector: &OsStr, root: Option<&Path>, ) -> Result<Self>

Use the same resolver as inference; preparation and inspection are untimed.

Source

fn from_inspection(value: &Value) -> Result<Self>

Extract the index identity and prepared location from the public inspection view.

Source

pub(super) fn migrate_signature(&self, signature: &mut Value)

Upgrade a proven source identity without exposing its path in shared reports.

Source

pub(super) fn metadata(&self) -> Result<Value>

Hash equivalent metadata in flat artifacts and legacy model/packed layouts.

Auto Trait Implementations§

§

impl Freeze for Model

§

impl RefUnwindSafe for Model

§

impl Send for Model

§

impl Sync for Model

§

impl Unpin for Model

§

impl UnsafeUnpin for Model

§

impl UnwindSafe for Model

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.