pub struct PreviewTarget<'a> {
pub label: &'a str,
pub state_id: StateId,
}Expand description
Caller-supplied override for the destination side of the preview’s
3-way merge. When Some, the inner preview MUST compute against
this (label, state_id) instead of thread.target_thread. Used by
merge_thread_into_current so the preview matches the actual merge
— heddle merge A from thread B merges A → B, but A’s
target_thread is whatever A was created from (often main), so
without an override the inner report computes A → main and
contradicts the real outcome (heddle#144).
Fields§
§label: &'a str§state_id: StateIdAuto Trait Implementations§
impl<'a> Freeze for PreviewTarget<'a>
impl<'a> RefUnwindSafe for PreviewTarget<'a>
impl<'a> Send for PreviewTarget<'a>
impl<'a> Sync for PreviewTarget<'a>
impl<'a> Unpin for PreviewTarget<'a>
impl<'a> UnsafeUnpin for PreviewTarget<'a>
impl<'a> UnwindSafe for PreviewTarget<'a>
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