pub struct SplitPlan {
pub header: Vec<usize>,
pub root_items: Vec<usize>,
pub mods: Vec<usize>,
pub parts: Vec<Part>,
pub oversized: Vec<Oversized>,
}Expand description
The result of planning a split.
Fields§
§header: Vec<usize>Chunk indices forming the shared header (preamble + plain imports).
root_items: Vec<usize>Chunk indices kept at the root verbatim, in source order: re-exports
(pub use ..., pub(crate) use ..., visibility-qualified
extern crate) and content-less mod name; declarations. Dropping or
demoting a pub use would silently narrow the crate’s public API.
mods: Vec<usize>Chunk indices of body-carrying mod name { ... } items, in source
order. Each is extracted whole to its own file regardless of size —
never packed into a cluster, so its #[cfg(test)]-style gate and
visibility can travel to the root declaration.
parts: Vec<Part>Cohesive destination modules, in source order.
oversized: Vec<Oversized>Items that cannot be placed under the ceiling on their own.
Implementations§
Trait Implementations§
impl Eq for SplitPlan
impl StructuralPartialEq for SplitPlan
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