pub enum CellRef<'a> {
CellRef {
cell_index: usize,
cell: &'a Cell,
},
ClusterRef {
cell_index: usize,
text: &'a str,
width: usize,
attrs: &'a CellAttributes,
},
}
Variants§
Implementations§
Source§impl<'a> CellRef<'a>
impl<'a> CellRef<'a>
pub fn cell_index(&self) -> usize
pub fn str(&self) -> &str
pub fn width(&self) -> usize
pub fn attrs(&self) -> &CellAttributes
pub fn presentation(&self) -> Presentation
pub fn as_cell(&self) -> Cell
pub fn same_contents(&self, other: &Self) -> bool
pub fn compute_shape_hash<H: Hasher>(&self, hasher: &mut H)
Trait Implementations§
impl<'a> Copy for CellRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CellRef<'a>
impl<'a> RefUnwindSafe for CellRef<'a>
impl<'a> Send for CellRef<'a>
impl<'a> Sync for CellRef<'a>
impl<'a> Unpin for CellRef<'a>
impl<'a> UnwindSafe for CellRef<'a>
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