Struct Laid
#[non_exhaustive]pub struct Laid {
pub key: String,
pub title: String,
pub count: Option<u64>,
pub open: bool,
pub height: f32,
pub by_hand: bool,
pub band: Rect,
pub body: Option<Rect>,
pub scroll: f32,
pub window: Option<Range<usize>>,
pub empty: f32,
pub drag: Option<DragMode>,
}Expand description
A section as laid out on the last pass (laid_out).
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.key: StringIts key.
title: StringIts title, in its own case.
count: Option<u64>The count on its band, if any.
open: boolWhether it is open.
height: f32Its body’s height, in points (0 when folded).
by_hand: boolWhether that height is its own, set by hand. Never for the last open section, which takes what the others leave.
band: RectIts band.
body: Option<Rect>Its body, when open.
scroll: f32How far its body is scrolled, in points (0 when folded, and for a bare body, whose scroll is the application’s).
window: Option<Range<usize>>The rows drawn on that pass, when windowed and open.
empty: f32The empty room under it, in points: only the last section has any (all of it, when no section is open).
drag: Option<DragMode>How a drag under way resizes it, if one does.
Trait Implementations§
§impl Serialize for Laid
impl Serialize for Laid
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Laid
Auto Trait Implementations§
impl Freeze for Laid
impl RefUnwindSafe for Laid
impl Send for Laid
impl Sync for Laid
impl Unpin for Laid
impl UnsafeUnpin for Laid
impl UnwindSafe for Laid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more