pub struct SplitPlan {
pub source_path: PathBuf,
pub layout: Layout,
pub out_dir: PathBuf,
pub parent_contents: String,
pub moved: Vec<MovedItem>,
pub files: Vec<GroupFile>,
}Expand description
The full plan for splitting one source file.
Fields§
§source_path: PathBuf§layout: Layout§out_dir: PathBufDirectory where child files are written.
parent_contents: StringNew parent file contents (the original file rewritten as a module index).
moved: Vec<MovedItem>Items being moved.
files: Vec<GroupFile>Generated files (stem + which items).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SplitPlan
impl RefUnwindSafe for SplitPlan
impl Send for SplitPlan
impl Sync for SplitPlan
impl Unpin for SplitPlan
impl UnsafeUnpin for SplitPlan
impl UnwindSafe for SplitPlan
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