[][src]Struct alacritty_terminal::grid::Row

pub struct Row<T> { /* fields omitted */ }

A row in the grid.

Implementations

impl<T: Copy> Row<T>[src]

pub fn new(columns: Column, template: T) -> Row<T> where
    T: GridCell
[src]

pub fn grow(&mut self, cols: Column, template: T)[src]

pub fn shrink(&mut self, cols: Column) -> Option<Vec<T>> where
    T: GridCell
[src]

pub fn reset(&mut self, template: T) where
    T: GridCell + PartialEq
[src]

Reset all cells in the row to the template cell.

impl<T> Row<T>[src]

pub fn from_vec(vec: Vec<T>, occ: usize) -> Row<T>[src]

pub fn len(&self) -> usize[src]

pub fn last(&self) -> Option<&T>[src]

pub fn last_mut(&mut self) -> Option<&mut T>[src]

pub fn append(&mut self, vec: &mut Vec<T>) where
    T: GridCell
[src]

pub fn append_front(&mut self, vec: Vec<T>)[src]

pub fn is_clear(&self) -> bool where
    T: GridCell
[src]

Check if all cells in the row are empty.

pub fn front_split_off(&mut self, at: usize) -> Vec<T>[src]

Trait Implementations

impl<T: Clone> Clone for Row<T>[src]

impl<T: Debug> Debug for Row<T>[src]

impl<T: Default> Default for Row<T>[src]

impl<'de, T> Deserialize<'de> for Row<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Index<Column> for Row<T>[src]

type Output = T

The returned type after indexing.

impl<T> Index<Range<Column>> for Row<T>[src]

type Output = [T]

The returned type after indexing.

impl<T> Index<RangeFrom<Column>> for Row<T>[src]

type Output = [T]

The returned type after indexing.

impl<T> Index<RangeFull> for Row<T>[src]

type Output = [T]

The returned type after indexing.

impl<T> Index<RangeTo<Column>> for Row<T>[src]

type Output = [T]

The returned type after indexing.

impl<T> Index<RangeToInclusive<Column>> for Row<T>[src]

type Output = [T]

The returned type after indexing.

impl<T> IndexMut<Column> for Row<T>[src]

impl<T> IndexMut<Range<Column>> for Row<T>[src]

impl<T> IndexMut<RangeFrom<Column>> for Row<T>[src]

impl<T> IndexMut<RangeFull> for Row<T>[src]

impl<T> IndexMut<RangeTo<Column>> for Row<T>[src]

impl<T> IndexMut<RangeToInclusive<Column>> for Row<T>[src]

impl<'a, T> IntoIterator for &'a mut Row<T>[src]

type IntoIter = IterMut<'a, T>

Which kind of iterator are we turning this into?

type Item = &'a mut T

The type of the elements being iterated over.

impl LineLength for Row<Cell>[src]

impl<T: PartialEq> PartialEq<Row<T>> for Row<T>[src]

impl<T> Serialize for Row<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Row<T> where
    T: RefUnwindSafe

impl<T> Send for Row<T> where
    T: Send

impl<T> Sync for Row<T> where
    T: Sync

impl<T> Unpin for Row<T> where
    T: Unpin

impl<T> UnwindSafe for Row<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.