pub struct InlineConfig {
pub ui_height: u16,
pub term_height: u16,
pub term_width: u16,
pub strategy: InlineStrategy,
pub use_sync_output: bool,
}Expand description
Configuration for inline mode rendering.
Fields§
§ui_height: u16Height of the UI region (bottom N rows).
term_height: u16Total terminal height.
term_width: u16Total terminal width.
strategy: InlineStrategyRendering strategy to use.
use_sync_output: boolUse synchronized output (DEC 2026) if available.
Implementations§
Source§impl InlineConfig
impl InlineConfig
Sourcepub fn new(ui_height: u16, term_height: u16, term_width: u16) -> Self
pub fn new(ui_height: u16, term_height: u16, term_width: u16) -> Self
Create config for a UI region of given height.
Sourcepub const fn with_strategy(self, strategy: InlineStrategy) -> Self
pub const fn with_strategy(self, strategy: InlineStrategy) -> Self
Set the rendering strategy.
Sourcepub const fn with_sync_output(self, enabled: bool) -> Self
pub const fn with_sync_output(self, enabled: bool) -> Self
Enable synchronized output.
Sourcepub const fn ui_top_row(&self) -> u16
pub const fn ui_top_row(&self) -> u16
Row where the UI region starts (1-indexed for ANSI).
Returns at least 1 (valid ANSI row).
Sourcepub const fn log_bottom_row(&self) -> u16
pub const fn log_bottom_row(&self) -> u16
Row where the log region ends (1-indexed for ANSI).
Returns 0 if there’s no room for logs (UI takes full height). Callers should check for 0 before using this value.
Trait Implementations§
Source§impl Clone for InlineConfig
impl Clone for InlineConfig
Source§fn clone(&self) -> InlineConfig
fn clone(&self) -> InlineConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineConfig
impl Debug for InlineConfig
impl Copy for InlineConfig
Auto Trait Implementations§
impl Freeze for InlineConfig
impl RefUnwindSafe for InlineConfig
impl Send for InlineConfig
impl Sync for InlineConfig
impl Unpin for InlineConfig
impl UnwindSafe for InlineConfig
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