#[non_exhaustive]pub struct Frame {
pub gutter_width: f32,
pub lines: Vec<FrameLine>,
pub selections: Vec<Rect>,
pub carets: Vec<Rect>,
pub current_line: Option<Rect>,
pub fold_markers: Vec<FoldMarker>,
pub fold_ellipses: Vec<Rect>,
pub minimap: Option<MinimapFrame>,
pub sticky: Vec<FrameLine>,
pub zones: Vec<(u32, Rect)>,
}Expand description
One laid-out frame. Grows with features (minimap, sticky lines, zones): read its fields, do not build 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.gutter_width: f32§lines: Vec<FrameLine>§selections: Vec<Rect>§carets: Vec<Rect>§current_line: Option<Rect>Background band of the primary caret’s line, when visible.
fold_markers: Vec<FoldMarker>Fold markers for the gutter, on shown lines that head a foldable or folded region.
fold_ellipses: Vec<Rect>Placeholders drawn after the text of folded header lines.
minimap: Option<MinimapFrame>The minimap, when it is on.
sticky: Vec<FrameLine>Headers of the scopes the top of the viewport is inside, pinned over the text, the outermost first. Drawn last, over everything else in the text area.
zones: Vec<(u32, Rect)>Visible view zones: the id the frontend gave each and the space it occupies.
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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