pub struct ZoneSpec {
pub id: ZoneId,
pub name: String,
pub label: String,
pub hint: ZoneHint,
pub area: Rect,
pub visible: bool,
pub order: u8,
}Expand description
A resolved zone — the host’s response to a ZoneRequest.
Contains the allocated area and metadata. Updated every frame since terminal resize can change the allocated rect.
Fields§
§id: ZoneIdUnique zone identifier.
name: StringOriginal request name.
label: StringDisplay label.
hint: ZoneHintZone hint (where it was placed).
area: RectCurrently allocated area (updated per frame).
visible: boolWhether this zone is currently visible.
order: u8Display order used for sorting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoneSpec
impl RefUnwindSafe for ZoneSpec
impl Send for ZoneSpec
impl Sync for ZoneSpec
impl Unpin for ZoneSpec
impl UnsafeUnpin for ZoneSpec
impl UnwindSafe for ZoneSpec
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