Struct Output

Source
pub struct Output<T: FactTypes> {
Show 17 fields pub errors: FxHashMap<T::Point, Vec<T::Loan>>, pub subset_errors: FxHashMap<T::Point, BTreeSet<(T::Origin, T::Origin)>>, pub move_errors: FxHashMap<T::Point, Vec<T::Path>>, pub dump_enabled: bool, pub loan_live_at: FxHashMap<T::Point, Vec<T::Loan>>, pub origin_contains_loan_at: FxHashMap<T::Point, BTreeMap<T::Origin, BTreeSet<T::Loan>>>, pub origin_contains_loan_anywhere: FxHashMap<T::Origin, BTreeSet<T::Loan>>, pub origin_live_on_entry: FxHashMap<T::Point, Vec<T::Origin>>, pub loan_invalidated_at: FxHashMap<T::Point, Vec<T::Loan>>, pub subset: FxHashMap<T::Point, BTreeMap<T::Origin, BTreeSet<T::Origin>>>, pub subset_anywhere: FxHashMap<T::Origin, BTreeSet<T::Origin>>, pub var_live_on_entry: FxHashMap<T::Point, Vec<T::Variable>>, pub var_drop_live_on_entry: FxHashMap<T::Point, Vec<T::Variable>>, pub path_maybe_initialized_on_exit: FxHashMap<T::Point, Vec<T::Path>>, pub path_maybe_uninitialized_on_exit: FxHashMap<T::Point, Vec<T::Path>>, pub known_contains: FxHashMap<T::Origin, BTreeSet<T::Loan>>, pub var_maybe_partly_initialized_on_exit: FxHashMap<T::Point, Vec<T::Variable>>,
}

Fields§

§errors: FxHashMap<T::Point, Vec<T::Loan>>§subset_errors: FxHashMap<T::Point, BTreeSet<(T::Origin, T::Origin)>>§move_errors: FxHashMap<T::Point, Vec<T::Path>>§dump_enabled: bool§loan_live_at: FxHashMap<T::Point, Vec<T::Loan>>§origin_contains_loan_at: FxHashMap<T::Point, BTreeMap<T::Origin, BTreeSet<T::Loan>>>§origin_contains_loan_anywhere: FxHashMap<T::Origin, BTreeSet<T::Loan>>§origin_live_on_entry: FxHashMap<T::Point, Vec<T::Origin>>§loan_invalidated_at: FxHashMap<T::Point, Vec<T::Loan>>§subset: FxHashMap<T::Point, BTreeMap<T::Origin, BTreeSet<T::Origin>>>§subset_anywhere: FxHashMap<T::Origin, BTreeSet<T::Origin>>§var_live_on_entry: FxHashMap<T::Point, Vec<T::Variable>>§var_drop_live_on_entry: FxHashMap<T::Point, Vec<T::Variable>>§path_maybe_initialized_on_exit: FxHashMap<T::Point, Vec<T::Path>>§path_maybe_uninitialized_on_exit: FxHashMap<T::Point, Vec<T::Path>>§known_contains: FxHashMap<T::Origin, BTreeSet<T::Loan>>§var_maybe_partly_initialized_on_exit: FxHashMap<T::Point, Vec<T::Variable>>

Implementations§

Source§

impl<T: FactTypes> Output<T>

Source

pub fn compute( all_facts: &AllFacts<T>, algorithm: Algorithm, dump_enabled: bool, ) -> Self

All variants require the same initial preparations, done in multiple successive steps:

  • compute initialization data
  • compute liveness
  • prepare static inputs as shared Relations
  • in cases where LocationInsensitive variant is ran as a filtering pre-pass, partial results can also be stored in the context, so that the following variant can use it to prune its own input data
Source

pub fn errors_at(&self, location: T::Point) -> &[T::Loan]

Source

pub fn loans_in_scope_at(&self, location: T::Point) -> &[T::Loan]

Source

pub fn origin_contains_loan_at( &self, location: T::Point, ) -> Cow<'_, BTreeMap<T::Origin, BTreeSet<T::Loan>>>

Source

pub fn origins_live_at(&self, location: T::Point) -> &[T::Origin]

Source

pub fn subsets_at( &self, location: T::Point, ) -> Cow<'_, BTreeMap<T::Origin, BTreeSet<T::Origin>>>

Trait Implementations§

Source§

impl<T: Clone + FactTypes> Clone for Output<T>
where T::Point: Clone, T::Loan: Clone, T::Origin: Clone, T::Path: Clone, T::Variable: Clone,

Source§

fn clone(&self) -> Output<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + FactTypes> Debug for Output<T>
where T::Point: Debug, T::Loan: Debug, T::Origin: Debug, T::Path: Debug, T::Variable: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Output<T>

§

impl<T> RefUnwindSafe for Output<T>

§

impl<T> Send for Output<T>
where <T as FactTypes>::Point: Send, <T as FactTypes>::Origin: Send, <T as FactTypes>::Loan: Send, <T as FactTypes>::Path: Send, <T as FactTypes>::Variable: Send,

§

impl<T> Sync for Output<T>
where <T as FactTypes>::Point: Sync, <T as FactTypes>::Origin: Sync, <T as FactTypes>::Loan: Sync, <T as FactTypes>::Path: Sync, <T as FactTypes>::Variable: Sync,

§

impl<T> Unpin for Output<T>
where <T as FactTypes>::Point: Unpin, <T as FactTypes>::Origin: Unpin, <T as FactTypes>::Loan: Unpin, <T as FactTypes>::Path: Unpin, <T as FactTypes>::Variable: Unpin,

§

impl<T> UnwindSafe for Output<T>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.