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§impl Debug for InspectionSnapshot
impl Debug for InspectionSnapshot
Source§impl Default for InspectionSnapshot
impl Default for InspectionSnapshot
impl Eq for InspectionSnapshot
Source§impl PartialEq for InspectionSnapshot
impl PartialEq for InspectionSnapshot
impl StructuralPartialEq for InspectionSnapshot
Auto Trait Implementations§
impl Forget for InspectionSnapshot
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