[−][src]Struct alacritty_terminal::grid::Row
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]
T: GridCell,
pub fn grow(&mut self, cols: Column, template: T)
[src]
pub fn shrink(&mut self, cols: Column) -> Option<Vec<T>> where
T: GridCell,
[src]
T: GridCell,
pub fn reset(&mut self, template: T) where
T: GridCell + PartialEq,
[src]
T: GridCell + PartialEq,
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]
T: GridCell,
pub fn append_front(&mut self, vec: Vec<T>)
[src]
pub fn is_clear(&self) -> bool where
T: GridCell,
[src]
T: GridCell,
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]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Index<Column> for Row<T>
[src]
impl<T> Index<Range<Column>> for Row<T>
[src]
type Output = [T]
The returned type after indexing.
fn index(&self, index: Range<Column>) -> &[T]
[src]
impl<T> Index<RangeFrom<Column>> for Row<T>
[src]
type Output = [T]
The returned type after indexing.
fn index(&self, index: RangeFrom<Column>) -> &[T]
[src]
impl<T> Index<RangeFull> for Row<T>
[src]
impl<T> Index<RangeTo<Column>> for Row<T>
[src]
type Output = [T]
The returned type after indexing.
fn index(&self, index: RangeTo<Column>) -> &[T]
[src]
impl<T> Index<RangeToInclusive<Column>> for Row<T>
[src]
type Output = [T]
The returned type after indexing.
fn index(&self, index: RangeToInclusive<Column>) -> &[T]
[src]
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]
fn index_mut(&mut self, index: RangeToInclusive<Column>) -> &mut [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.
fn into_iter(self) -> IterMut<'a, T>
[src]
impl LineLength for Row<Cell>
[src]
fn line_length(&self) -> Column
[src]
impl<T: PartialEq> PartialEq<Row<T>> for Row<T>
[src]
impl<T> Serialize for Row<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Row<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Row<T> where
T: Send,
T: Send,
impl<T> Sync for Row<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Row<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Row<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,