pub fn write_iter<I, T>(&mut self, iter: I) -> io::Result<usize>
    where
        I: IntoIterator<Item = T>,
        T: WriteStd140,
    {
        let mut offset = self.offset;

        let mut iter = iter.into_iter();

        if let Some(item) = iter.next() {
            offset = item.write_std140(self)?;
        }

        for item in iter {
            item.write_std140(self)?;
        }

        Ok(offset)
    }
/// Write an iterator of values to the underlying buffer.
///
/// Returns the offset into the buffer that the first value was written to.
/// If no values were written, returns the `len()`.
Write an iterator of values to the underlying buffer.
Returns the offset into the buffer that the first value was written to.
If no values were written, returns the `len()`.
Write an iterator of values to the underlying buffer . Returns the offset into the buffer that the first value was written to . If no values were written returns the ` len () ` .
pub fn write_iter<I, T>(&mut self, iter: I) -> io::Result<usize>
    where
        I: IntoIterator<Item = T>,
        T: WriteStd140,
    {
        let mut offset = self.offset;
        let mut iter = iter.into_iter();
        if let Some(item) = iter.next() {
            offset = item.write_std140(self)?;
        }
        for item in iter {
            item.write_std140(self)?;
        }
        Ok(offset)
    }
pub fn write_iter < I , T > ( & mut self , iter : I ) -> io :: Result < usize > where I : IntoIterator < Item = T > , T : WriteStd140 , { let mut offset = self . offset ; let mut iter = iter . into_iter ( ) ; if let Some ( item ) = iter . next ( ) { offset = item . write_std140 ( self ) ? ; } for item in iter { item . write_std140 ( self ) ? ; } Ok ( offset ) }
Write an iterator of values to the underlying buffer.
Write an iterator of values to the underlying buffer .
&mut self
iter
I
&mut self
iter
I