pub struct VisEdit {
pub rel_start: usize,
pub rel_end: usize,
pub text: String,
}Expand description
How an item’s visibility must be rewritten when it moves into a child module, so the parent can still re-export it at its original visibility.
Fields§
§rel_start: usizeByte range within the item’s own source slice to replace. A zero-width range means “insert at this offset”.
rel_end: usize§text: StringReplacement / inserted text (e.g. pub(super) or pub(crate)).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VisEdit
impl RefUnwindSafe for VisEdit
impl Send for VisEdit
impl Sync for VisEdit
impl Unpin for VisEdit
impl UnsafeUnpin for VisEdit
impl UnwindSafe for VisEdit
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