pub struct LayoutCache {
pub generation: LayoutGeneration,
pub height: u32,
pub lines: Vec<LineBox>,
pub natural_indent: u32,
pub avatar: Option<AvatarBox>,
}Expand description
What a laid-out message knows about itself.
Fields§
§generation: LayoutGeneration§height: u32§lines: Vec<LineBox>§natural_indent: u32Width the gutter/nick column actually needed, before clamping to
LayoutParams::max_indent.
avatar: Option<AvatarBox>Where to paint the speaker’s avatar, when there is one to paint.
Only ever set on a group head — a continuation row shows neither the nick nor the icon, which is the whole point of grouping. The view resolves the actual image from the key at draw time, because avatars animate and a cached frame would freeze.
Trait Implementations§
Source§impl Clone for LayoutCache
impl Clone for LayoutCache
Source§impl Debug for LayoutCache
impl Debug for LayoutCache
impl Eq for LayoutCache
Source§impl PartialEq for LayoutCache
impl PartialEq for LayoutCache
impl StructuralPartialEq for LayoutCache
Auto Trait Implementations§
impl Freeze for LayoutCache
impl RefUnwindSafe for LayoutCache
impl Send for LayoutCache
impl Sync for LayoutCache
impl Unpin for LayoutCache
impl UnsafeUnpin for LayoutCache
impl UnwindSafe for LayoutCache
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