pub struct MoveSymbol {
pub intent: MoveSymbolIntent,
pub declaration: Match,
pub pieces: Vec<SymbolMovePiece>,
pub state: MutationState,
pub from: Address,
pub to: Address,
pub notices: Vec<Notice>,
pub respellings: Vec<Respelling>,
pub files: Vec<FileChange>,
}Expand description
vvv move --symbol: one declaration moved between files.
Fields§
§intent: MoveSymbolIntent§declaration: Match§pieces: Vec<SymbolMovePiece>§state: MutationStatePreview or successful application with its history entry.
from: AddressThe declaration’s address before and after.
to: Address§notices: Vec<Notice>§respellings: Vec<Respelling>Consumers rewritten in place; every other edit in files is the
declaration itself moving.
files: Vec<FileChange>Trait Implementations§
Source§impl Clone for MoveSymbol
impl Clone for MoveSymbol
Source§impl Debug for MoveSymbol
impl Debug for MoveSymbol
Source§impl<'de> Deserialize<'de> for MoveSymbol
impl<'de> Deserialize<'de> for MoveSymbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Mutation for MoveSymbol
impl Mutation for MoveSymbol
Source§fn into_mutation(self) -> MutationAnswer
fn into_mutation(self) -> MutationAnswer
Wrap this payload in the closed mutation result.
Auto Trait Implementations§
impl Freeze for MoveSymbol
impl RefUnwindSafe for MoveSymbol
impl Send for MoveSymbol
impl Sync for MoveSymbol
impl Unpin for MoveSymbol
impl UnsafeUnpin for MoveSymbol
impl UnwindSafe for MoveSymbol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more