Skip to main content

SplitPlan

Struct SplitPlan 

Source
pub struct SplitPlan {
Show 19 fields pub module: String, pub package: String, pub app: String, pub new_app: String, pub root: PathBuf, pub from: PathBuf, pub to: PathBuf, pub workspace: PathBuf, pub contracts: Vec<String>, pub stays_local: Vec<String>, pub lookups: Vec<String>, pub events: Vec<String>, pub calls_back: Vec<String>, pub reaches: Vec<String>, pub called_contracts: Vec<Crate>, pub proxy: Vec<String>, pub shared_prefixes: Vec<String>, pub orphaned_tests: Vec<PathBuf>, pub last_module: bool,
}

Fields§

§module: String§package: String§app: String

The app the module leaves.

§new_app: String§root: PathBuf§from: PathBuf§to: PathBuf§workspace: PathBuf§contracts: Vec<String>§stays_local: Vec<String>§lookups: Vec<String>§events: Vec<String>§calls_back: Vec<String>

Modules of the app it leaves whose contracts the module calls, served back to it.

§reaches: Vec<String>

Modules it calls that an earlier split already moved elsewhere.

§called_contracts: Vec<Crate>

The contracts of calls_back and reaches, which the new app depends on.

§proxy: Vec<String>§shared_prefixes: Vec<String>§orphaned_tests: Vec<PathBuf>

The app’s test files naming the module’s crate, which it no longer depends on.

§last_module: bool

Trait Implementations§

Source§

impl Debug for SplitPlan

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for SplitPlan

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.