pub struct Legacy {
pub since: String,
pub prefix: String,
pub span: Span,
}Expand description
A bidama’s rename ledger, declared at its top level:
legacy_names(since, prefix).
The bidama’s definitions were once all named prefix_x. From version
since, every definition x is also reachable as prefix_x — a BRIDGE
for callers still on the old spelling, open while the bidama’s version
is at least since and below the next minor — and a definition that
must keep its prefix (the stripped name is a reserved word or a builtin
the bidama uses bare) is also reachable by its stripped name, for good.
Like use, it is consumed by the resolver and evaluates to nothing; an
expired ledger stays in the source, and powers the fix for a late caller.
Fields§
§since: String§prefix: String§span: SpanTrait Implementations§
impl StructuralPartialEq for Legacy
Auto Trait Implementations§
impl Freeze for Legacy
impl RefUnwindSafe for Legacy
impl Send for Legacy
impl Sync for Legacy
impl Unpin for Legacy
impl UnsafeUnpin for Legacy
impl UnwindSafe for Legacy
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