Struct vecvec::VecVec
[−]
[src]
pub struct VecVec<T> { /* fields omitted */ }
Methods
impl<T> VecVec<T>
[src]
fn new(width: usize, height: usize, value: T) -> Self where
T: Clone,
T: Clone,
fn width(&self) -> usize
fn height(&self) -> usize
fn get(&self, x: usize, y: usize) -> Option<&T>
fn get_mut(&mut self, x: usize, y: usize) -> Option<&mut T>
fn slice(
&self,
x: usize,
y: usize,
width: usize,
height: usize
) -> Option<ImmutableSlice<T>>
&self,
x: usize,
y: usize,
width: usize,
height: usize
) -> Option<ImmutableSlice<T>>
fn slice_mut(
&mut self,
x: usize,
y: usize,
width: usize,
height: usize
) -> Option<MutableSlice<T>>
&mut self,
x: usize,
y: usize,
width: usize,
height: usize
) -> Option<MutableSlice<T>>
fn hsplit_at(&self, y: usize) -> Option<(ImmutableSlice<T>, ImmutableSlice<T>)>
fn vsplit_at(&self, x: usize) -> Option<(ImmutableSlice<T>, ImmutableSlice<T>)>
fn hsplit_at_mut(
&mut self,
y: usize
) -> Option<(MutableSlice<T>, MutableSlice<T>)>
&mut self,
y: usize
) -> Option<(MutableSlice<T>, MutableSlice<T>)>
fn vsplit_at_mut(
&mut self,
x: usize
) -> Option<(MutableSlice<T>, MutableSlice<T>)>
&mut self,
x: usize
) -> Option<(MutableSlice<T>, MutableSlice<T>)>
fn as_slice(&self) -> ImmutableSlice<T>
fn as_mut_slice(&self) -> MutableSlice<T>
Trait Implementations
impl<T: Clone> Clone for VecVec<T>
[src]
fn clone(&self) -> VecVec<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for VecVec<T>
[src]
fn eq(&self, __arg_0: &VecVec<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &VecVec<T>) -> bool
This method tests for !=
.