pub fn add<T>(&mut self) -> usize
    where
        T: AsStd430,
    {
        let size = size_of::<<T as AsStd430>::Output>();
        let alignment = <T as AsStd430>::Output::ALIGNMENT;
        let padding = align_offset(self.offset, alignment);

        self.offset += padding;
        let write_here = self.offset;

        self.offset += size;

        write_here
    }
/// Add a type's necessary padding and size to the `Sizer`. Returns the
/// offset into the buffer where that type would be written.
Add a type's necessary padding and size to the `Sizer`. Returns the
offset into the buffer where that type would be written.
Add a type ' s necessary padding and size to the ` Sizer ` . Returns the offset into the buffer where that type would be written .
pub fn add<T>(&mut self) -> usize
    where
        T: AsStd430,
    {
        let size = size_of::<<T as AsStd430>::Output>();
        let alignment = <T as AsStd430>::Output::ALIGNMENT;
        let padding = align_offset(self.offset, alignment);
        self.offset += padding;
        let write_here = self.offset;
        self.offset += size;
        write_here
    }
pub fn add < T > ( & mut self ) -> usize where T : AsStd430 , { let size = size_of :: < < T as AsStd430 > :: Output > ( ) ; let alignment = < T as AsStd430 > :: Output :: ALIGNMENT ; let padding = align_offset ( self . offset , alignment ) ; self . offset += padding ; let write_here = self . offset ; self . offset += size ; write_here }
Add a type's necessary padding and size to the `Sizer`.
Add a type ' s necessary padding and size to the ` Sizer ` .
&mut self
&mut self