pub enum CellRef<'a> {
CellRef {
cell_index: usize,
cell: &'a Cell,
},
ClusterRef {
cell_index: usize,
text: &'a str,
width: usize,
attrs: &'a CellAttributes,
},
}
Variants
CellRef
ClusterRef
Implementations
sourceimpl<'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
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more