#[non_exhaustive]pub struct AnnotationLine {
pub change_id: String,
pub line: u32,
pub content: String,
}Expand description
One line of jj file annotate output: which change last touched it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.change_id: StringShort change id of the change that introduced the line.
line: u32Line number in the annotated file (1-based).
content: StringThe line’s content (without the trailing newline).
Trait Implementations§
Source§impl Clone for AnnotationLine
impl Clone for AnnotationLine
Source§fn clone(&self) -> AnnotationLine
fn clone(&self) -> AnnotationLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationLine
impl Debug for AnnotationLine
impl Eq for AnnotationLine
Source§impl PartialEq for AnnotationLine
impl PartialEq for AnnotationLine
Source§fn eq(&self, other: &AnnotationLine) -> bool
fn eq(&self, other: &AnnotationLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnnotationLine
Auto Trait Implementations§
impl Freeze for AnnotationLine
impl RefUnwindSafe for AnnotationLine
impl Send for AnnotationLine
impl Sync for AnnotationLine
impl Unpin for AnnotationLine
impl UnsafeUnpin for AnnotationLine
impl UnwindSafe for AnnotationLine
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