pub struct Available { /* private fields */ }Expand description
The area a view may occupy: an input to layout, not an afterthought.
A terminal width or a Ratatui Rect becomes an Available. It flows down
the tree and each node resolves its own size under it, so a frame closes at
whatever size the area forces. It is not a clip applied to a finished
rectangle; the only crop left is the degenerate-case safety net in
resolve.
An absent bound is not zero: it means the axis is unbounded, which is what
measure resolves under and what makes an intrinsic size the same
computation as a bounded one.
Implementations§
Source§impl Available
impl Available
Trait Implementations§
impl Copy for Available
impl Eq for Available
impl StructuralPartialEq for Available
Auto Trait Implementations§
impl Freeze for Available
impl RefUnwindSafe for Available
impl Send for Available
impl Sync for Available
impl Unpin for Available
impl UnsafeUnpin for Available
impl UnwindSafe for Available
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