pub struct Row<T> { /* private fields */ }
Expand description
A row in the grid
Implementations§
Source§impl<T: Copy> Row<T>
impl<T: Copy> Row<T>
Source§impl<T> Row<T>
impl<T> Row<T>
pub fn from_vec(vec: Vec<T>, occ: usize) -> Row<T>
pub fn len(&self) -> usize
pub fn last(&self) -> Option<&T>
pub fn last_mut(&mut self) -> Option<&mut T>
pub fn append(&mut self, vec: &mut Vec<T>)where
T: GridCell,
pub fn append_front(&mut self, vec: Vec<T>)
pub fn is_empty(&self) -> boolwhere
T: GridCell,
pub fn front_split_off(&mut self, at: usize) -> Vec<T>
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Row<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Row<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, T> IntoIterator for &'a mut Row<T>
impl<'a, T> IntoIterator for &'a mut Row<T>
Source§impl LineLength for Row<Cell>
impl LineLength for Row<Cell>
Source§fn line_length(&self) -> Column
fn line_length(&self) -> Column
Calculate the occupied line length
Auto Trait Implementations§
impl<T> Freeze for Row<T>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)