pub struct PaneSnapshot {
pub document: DocumentId,
pub revision: BufferRevision,
pub bounds: ViewBounds,
pub cursor: usize,
pub view_top: usize,
pub hscroll: usize,
pub terminal_input: bool,
pub overlays: bool,
pub rect: Rect,
pub budget: Rect,
pub window_top: usize,
pub lines: Vec<String>,
}Expand description
One pane’s semantic window, keyed by document identity + the revision the window was prepared against.
Fields§
§document: DocumentId§revision: BufferRevision§bounds: ViewBounds§cursor: usize§view_top: usize§hscroll: usize§terminal_input: bool§overlays: bool§rect: Rect§budget: Rect§window_top: usizeThe text window: lines starting at window_top, bounded by the
pane’s row budget and the document’s length.
lines: Vec<String>Trait Implementations§
Source§impl Clone for PaneSnapshot
impl Clone for PaneSnapshot
Source§impl Debug for PaneSnapshot
impl Debug for PaneSnapshot
Source§impl<'de> Deserialize<'de> for PaneSnapshot
impl<'de> Deserialize<'de> for PaneSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaneSnapshot
impl PartialEq for PaneSnapshot
Source§impl Serialize for PaneSnapshot
impl Serialize for PaneSnapshot
impl StructuralPartialEq for PaneSnapshot
Auto Trait Implementations§
impl Freeze for PaneSnapshot
impl RefUnwindSafe for PaneSnapshot
impl Send for PaneSnapshot
impl Sync for PaneSnapshot
impl Unpin for PaneSnapshot
impl UnsafeUnpin for PaneSnapshot
impl UnwindSafe for PaneSnapshot
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