pub struct LegacyMigrator { /* private fields */ }Expand description
Performs one idempotent migration using an immutable path-policy snapshot.
Implementations§
Source§impl LegacyMigrator
impl LegacyMigrator
Sourcepub fn new(paths: VtCodePaths) -> Self
pub fn new(paths: VtCodePaths) -> Self
Creates a migrator bound to one resolved global path policy.
Sourcepub fn run(&self) -> Result<MigrationReport>
pub fn run(&self) -> Result<MigrationReport>
Scans and copies eligible legacy content without modifying its source.
Trait Implementations§
Source§impl Clone for LegacyMigrator
impl Clone for LegacyMigrator
Source§fn clone(&self) -> LegacyMigrator
fn clone(&self) -> LegacyMigrator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LegacyMigrator
impl RefUnwindSafe for LegacyMigrator
impl Send for LegacyMigrator
impl Sync for LegacyMigrator
impl Unpin for LegacyMigrator
impl UnsafeUnpin for LegacyMigrator
impl UnwindSafe for LegacyMigrator
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