pub struct LogSnapshot { /* private fields */ }Expand description
A rendered jj log view plus semantic records for navigation.
The rendered body is opaque terminal text produced by jj. Each LogEntry in entries
must correspond to one commit row in that rendered text through LogEntry::rendered_line.
Implementations§
Source§impl LogSnapshot
impl LogSnapshot
Sourcepub fn new(rendered: impl Into<String>, entries: Vec<LogEntry>) -> Self
pub fn new(rendered: impl Into<String>, entries: Vec<LogEntry>) -> Self
Creates a log snapshot from rendered terminal text and semantic entries.
The caller is responsible for ensuring each entry’s rendered line points at the matching
commit row in rendered.
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Sets the command context shown in the title bar.
Trait Implementations§
Source§impl Clone for LogSnapshot
impl Clone for LogSnapshot
Source§fn clone(&self) -> LogSnapshot
fn clone(&self) -> LogSnapshot
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 LogSnapshot
impl Debug for LogSnapshot
Source§impl Default for LogSnapshot
impl Default for LogSnapshot
Source§fn default() -> LogSnapshot
fn default() -> LogSnapshot
Returns the “default value” for a type. Read more
impl Eq for LogSnapshot
Source§impl PartialEq for LogSnapshot
impl PartialEq for LogSnapshot
Source§fn eq(&self, other: &LogSnapshot) -> bool
fn eq(&self, other: &LogSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LogSnapshot
Auto Trait Implementations§
impl Freeze for LogSnapshot
impl RefUnwindSafe for LogSnapshot
impl Send for LogSnapshot
impl Sync for LogSnapshot
impl Unpin for LogSnapshot
impl UnsafeUnpin for LogSnapshot
impl UnwindSafe for LogSnapshot
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