pub struct PerMsgCache {
pub content_len: usize,
pub lines: Vec<Line<'static>>,
pub msg_index: usize,
}Expand description
单条消息的渲染缓存
Fields§
§content_len: usize消息内容长度(用于检测变化)
lines: Vec<Line<'static>>渲染好的行
msg_index: usize对应的 msg_start_line(此消息在全局行列表中的起始行号,需在拼装时更新)
Auto Trait Implementations§
impl Freeze for PerMsgCache
impl RefUnwindSafe for PerMsgCache
impl Send for PerMsgCache
impl Sync for PerMsgCache
impl Unpin for PerMsgCache
impl UnsafeUnpin for PerMsgCache
impl UnwindSafe for PerMsgCache
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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