pub struct MoveSymbolIntent {
pub name: String,
pub selection: Selection,
pub expected_content: Option<ContentId>,
pub from: PathBuf,
pub to: PathBuf,
}Expand description
Move one declaration — with what belongs to it in the text, and for Rust
its impl blocks — from the file declaring it to another file of the
same language, and make every reference follow.
Fields§
§name: String§selection: Selection§expected_content: Option<ContentId>§from: PathBufThe file declaring it.
to: PathBufThe file to declare it in; it must exist.
Implementations§
Source§impl MoveSymbolIntent
Plan moving one declaration to another file of its language. Nothing is
written; see Apply.
impl MoveSymbolIntent
Plan moving one declaration to another file of its language. Nothing is
written; see Apply.
Trait Implementations§
Source§impl Clone for MoveSymbolIntent
impl Clone for MoveSymbolIntent
Source§impl Debug for MoveSymbolIntent
impl Debug for MoveSymbolIntent
Source§impl<'de> Deserialize<'de> for MoveSymbolIntent
impl<'de> Deserialize<'de> for MoveSymbolIntent
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
impl Eq for MoveSymbolIntent
Source§impl From<MoveSymbolIntent> for Intent
impl From<MoveSymbolIntent> for Intent
Source§fn from(i: MoveSymbolIntent) -> Self
fn from(i: MoveSymbolIntent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MoveSymbolIntent
impl PartialEq for MoveSymbolIntent
Source§impl Serialize for MoveSymbolIntent
impl Serialize for MoveSymbolIntent
impl StructuralPartialEq for MoveSymbolIntent
Auto Trait Implementations§
impl Freeze for MoveSymbolIntent
impl RefUnwindSafe for MoveSymbolIntent
impl Send for MoveSymbolIntent
impl Sync for MoveSymbolIntent
impl Unpin for MoveSymbolIntent
impl UnsafeUnpin for MoveSymbolIntent
impl UnwindSafe for MoveSymbolIntent
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