[][src]Struct alacritty::grid::Row

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

A row in the grid

Methods

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

pub fn new(columns: Column, template: &T) -> Row<T>[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, other: &T)[src]

Resets contents to the contents of other

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_empty(&self) -> bool where
    T: GridCell
[src]

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

Trait Implementations

impl LineLength for Row<Cell>[src]

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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<T: PartialEq> PartialEq<Row<T>> for Row<T>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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<RangeTo<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<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<RangeTo<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<RangeToInclusive<Column>> for Row<T>[src]

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

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