pub struct FileMigration {
pub rel_path: String,
pub rewrites: Vec<Rewrite>,
pub new_text: String,
}Expand description
One type file’s migration: the rewrites and the resulting text.
Fields§
§rel_path: StringPackage-relative path (types/anchor.yaml).
rewrites: Vec<Rewrite>§new_text: StringThe file after the rewrites; equal to the original when
rewrites is empty.
Trait Implementations§
Source§impl Clone for FileMigration
impl Clone for FileMigration
Source§fn clone(&self) -> FileMigration
fn clone(&self) -> FileMigration
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 FileMigration
impl RefUnwindSafe for FileMigration
impl Send for FileMigration
impl Sync for FileMigration
impl Unpin for FileMigration
impl UnsafeUnpin for FileMigration
impl UnwindSafe for FileMigration
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