kvarn::prelude::utils::prelude::ioEnum SeekFrom
1.0.0 · source pub enum SeekFrom {
Start(u64),
End(i64),
Current(i64),
}
Expand description
Enumeration of possible methods to seek within an I/O object.
It is used by the Seek
trait.
Sets the offset to the provided number of bytes.
Sets the offset to the size of this object plus the specified number of
bytes.
It is possible to seek beyond the end of an object, but it’s an error to
seek before byte 0.