pub struct TerminalSourceRange {
pub start_line: u64,
pub end_line: u64,
}Expand description
Inclusive range of global terminal line indices.
Values are zero-based logical history/screen indices. No invariant enforces
start_line <= end_line for directly constructed/deserialized values.
§Examples
use ailloli_ui_terminal_core::TerminalSourceRange;
assert_eq!(TerminalSourceRange::single(7), TerminalSourceRange { start_line: 7, end_line: 7 });Fields§
§start_line: u64Inclusive first global terminal line.
end_line: u64Inclusive last global terminal line.
Implementations§
Trait Implementations§
Source§impl Clone for TerminalSourceRange
impl Clone for TerminalSourceRange
Source§fn clone(&self) -> TerminalSourceRange
fn clone(&self) -> TerminalSourceRange
Returns a copy 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 TerminalSourceRange
impl Debug for TerminalSourceRange
Source§impl<'de> Deserialize<'de> for TerminalSourceRange
impl<'de> Deserialize<'de> for TerminalSourceRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TerminalSourceRange
impl Hash for TerminalSourceRange
Source§impl PartialEq for TerminalSourceRange
impl PartialEq for TerminalSourceRange
Source§impl Serialize for TerminalSourceRange
impl Serialize for TerminalSourceRange
impl Copy for TerminalSourceRange
impl Eq for TerminalSourceRange
impl StructuralPartialEq for TerminalSourceRange
Auto Trait Implementations§
impl Freeze for TerminalSourceRange
impl RefUnwindSafe for TerminalSourceRange
impl Send for TerminalSourceRange
impl Sync for TerminalSourceRange
impl Unpin for TerminalSourceRange
impl UnwindSafe for TerminalSourceRange
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