Trait nue_io::SeekAlignExt [] [src]

pub trait SeekAlignExt {
    fn align_to(&mut self, alignment: u64) -> Result<u64>;
}

An extension trait that will seek to meet a specified alignment.

Required Methods

fn align_to(&mut self, alignment: u64) -> Result<u64>

Seeks forward to a multiple of alignment.

Returns the resulting offset in the stream upon success.

Implementors