pub struct MovedItem {
pub group: String,
pub leading_comment: String,
pub text: String,
pub vis_edits: Vec<VisEdit>,
pub reexport: Option<ReExport>,
pub order: usize,
}Expand description
A single top-level item that will move into a child module file.
Fields§
§group: StringTarget file stem (snake_case); items sharing a stem share a file.
leading_comment: StringPlain // comment block immediately preceding the item (already-doc comments
are part of text). May be empty.
text: StringRaw source slice of the item, including doc-comments and attributes.
vis_edits: Vec<VisEdit>Visibility rewrites to apply to text for the child file (item + members).
reexport: Option<ReExport>Re-export to emit in the parent (None for impl blocks).
order: usizeOriginal order index in the source file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MovedItem
impl RefUnwindSafe for MovedItem
impl Send for MovedItem
impl Sync for MovedItem
impl Unpin for MovedItem
impl UnsafeUnpin for MovedItem
impl UnwindSafe for MovedItem
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