[−][src]Struct alacritty::grid::Row
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]
T: GridCell,
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]
T: GridCell,
pub fn append_front(&mut self, vec: Vec<T>)[src]
pub fn is_empty(&self) -> bool where
T: GridCell, [src]
T: GridCell,
pub fn front_split_off(&mut self, at: usize) -> Vec<T>[src]
Trait Implementations
impl LineLength for Row<Cell>[src]
fn line_length(&self) -> Column[src]
impl<T: Default> Default for Row<T>[src]
impl<T: Clone> Clone for Row<T>[src]
fn clone(&self) -> 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.
fn into_iter(self) -> IterMut<'a, T>[src]
impl<T: PartialEq> PartialEq<Row<T>> for Row<T>[src]
fn eq(&self, other: &Self) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
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<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<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<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<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]
fn index_mut(&mut self, index: RangeToInclusive<Column>) -> &mut [T][src]
impl<T: Debug> Debug for Row<T>[src]
impl<T> Serialize for Row<T> where
T: Serialize, [src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
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>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> SetParameter for T[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>, [src]
T: Parameter<Self>,
Sets value as a parameter of self.
impl<T> Erased for T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,