pub struct ProjectionAnnotationContext<'a> {
pub action: &'a str,
pub item_type: &'a str,
pub path: &'a str,
pub source_path: Option<&'a str>,
pub source_item_type: Option<&'a str>,
pub evidence: Option<&'a str>,
pub edits: &'a [Edit],
pub container: bool,
pub unlinked_side: Option<TreeSide>,
}Fields§
§action: &'a str§item_type: &'a str§path: &'a str§source_path: Option<&'a str>§source_item_type: Option<&'a str>item_type of the source (left/from) endpoint of a link, when this line
is a reconciled correspondence. Lets an annotator notice that a container’s
representation changed (e.g. “directory” -> “SQLite database”) and render a
reshape instead of a bare move. None for unlinked add/remove lines and
when the source carried no explicit item_type. Core supplies the raw
strings; it never interprets them — the annotator owns the wording.
evidence: Option<&'a str>§edits: &'a [Edit]§container: bool§unlinked_side: Option<TreeSide>Auto Trait Implementations§
impl<'a> Freeze for ProjectionAnnotationContext<'a>
impl<'a> RefUnwindSafe for ProjectionAnnotationContext<'a>
impl<'a> Send for ProjectionAnnotationContext<'a>
impl<'a> Sync for ProjectionAnnotationContext<'a>
impl<'a> Unpin for ProjectionAnnotationContext<'a>
impl<'a> UnsafeUnpin for ProjectionAnnotationContext<'a>
impl<'a> UnwindSafe for ProjectionAnnotationContext<'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