ʰ
Size: a a a
ʰ
ʰ
S[
pub struct RowIter<'a> {
data: Vec<Rc<Column>>,
current_row: usize,
_pd: core::marker::PhantomData<&'a ()>
}
ʰ
ʰ
R
ʰ
ʰ
S[
ʰ
impl<'a> Iterator for RowIter<'a> {
type Item = Vec<&'a Container>;
fn next(&mut self) -> Option<Vec<&'a Container>> {
let mut row = Vec::with_capacity(self.columns.len());
for col in &self.columns {
let cell: &'a Container = col.data.get(self.current_row)?;
row.push(cell);
}
self.current_row += 1;
Some(row)
}
}
естесна он ругается cannot infer an appropriate lifetime for borrow expression due to conflicting requirements for col in
&self.columnsS[
impl<'a> Iterator for RowIter<'a> {
type Item = Vec<&'a Container>;
fn next(&mut self) -> Option<Vec<&'a Container>> {
let mut row = Vec::with_capacity(self.columns.len());
for col in &self.columns {
let cell: &'a Container = col.data.get(self.current_row)?;
row.push(cell);
}
self.current_row += 1;
Some(row)
}
}
естесна он ругается cannot infer an appropriate lifetime for borrow expression due to conflicting requirements for col in
&self.columnsS[
impl<'a> Iterator for RowIter<'a> {
type Item = Vec<&'a Container>;
fn next(&mut self) -> Option<Vec<&'a Container>> {
let mut row = Vec::with_capacity(self.columns.len());
for col in &self.columns {
let cell: &'a Container = col.data.get(self.current_row)?;
row.push(cell);
}
self.current_row += 1;
Some(row)
}
}
естесна он ругается cannot infer an appropriate lifetime for borrow expression due to conflicting requirements for col in
&self.columnsRowIter
'a полностьюʰ
pub struct RowIter<'a> {
data: Vec<Rc<Column>>,
current_row: usize,
_pd: core::marker::PhantomData<&'a ()>
}
S[
ʰ
ʰ
S[
ʰ
ʰ
S[