pub struct Respelling {
pub path: RelPath,
pub span: Span,
pub start: Position,
pub from: String,
pub to: String,
}Expand description
A reference a move re-spelled in place: where it is, what it said and what it says now. A preview lists these as one row each instead of a diff hunk; an edit no respelling accounts for is structural and shows as a hunk.
Fields§
§path: RelPath§span: SpanThe reference’s span before the move — the edit that rewrites it.
start: Position§from: String§to: StringTrait Implementations§
Source§impl Clone for Respelling
impl Clone for Respelling
Source§impl Debug for Respelling
impl Debug for Respelling
Source§impl<'de> Deserialize<'de> for Respelling
impl<'de> Deserialize<'de> for Respelling
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 Respelling
Source§impl PartialEq for Respelling
impl PartialEq for Respelling
Source§impl Serialize for Respelling
impl Serialize for Respelling
impl StructuralPartialEq for Respelling
Auto Trait Implementations§
impl Freeze for Respelling
impl RefUnwindSafe for Respelling
impl Send for Respelling
impl Sync for Respelling
impl Unpin for Respelling
impl UnsafeUnpin for Respelling
impl UnwindSafe for Respelling
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