pub struct InspectionSnapshot { /* private fields */ }Expand description
A rendered read-only jj inspection view.
Implementations§
Source§impl InspectionSnapshot
impl InspectionSnapshot
Sourcepub fn new(target: impl Into<String>, rendered: impl Into<String>) -> Self
pub fn new(target: impl Into<String>, rendered: impl Into<String>) -> Self
Creates an inspection snapshot from the target label and rendered terminal text.
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.
Sourcepub fn into_parts(self) -> (String, String, String)
pub fn into_parts(self) -> (String, String, String)
Consumes the snapshot into its owned title, target, and rendered body.
Trait Implementations§
Source§impl Clone for InspectionSnapshot
impl Clone for InspectionSnapshot
Source§fn clone(&self) -> InspectionSnapshot
fn clone(&self) -> InspectionSnapshot
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 InspectionSnapshot
impl Debug for InspectionSnapshot
Source§impl Default for InspectionSnapshot
impl Default for InspectionSnapshot
Source§fn default() -> InspectionSnapshot
fn default() -> InspectionSnapshot
Returns the “default value” for a type. Read more
impl Eq for InspectionSnapshot
Source§impl PartialEq for InspectionSnapshot
impl PartialEq for InspectionSnapshot
Source§fn eq(&self, other: &InspectionSnapshot) -> bool
fn eq(&self, other: &InspectionSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InspectionSnapshot
Auto Trait Implementations§
impl Freeze for InspectionSnapshot
impl RefUnwindSafe for InspectionSnapshot
impl Send for InspectionSnapshot
impl Sync for InspectionSnapshot
impl Unpin for InspectionSnapshot
impl UnsafeUnpin for InspectionSnapshot
impl UnwindSafe for InspectionSnapshot
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