Enum ethcore_util::standard::io::SeekFrom 1.0.0
[−]
[src]
pub enum SeekFrom { Start(u64), End(i64), Current(i64), }
1.0.0
Enumeration of possible methods to seek within an I/O object.
It is used by the Seek
trait.
Variants
Start(u64)
Set the offset to the provided number of bytes.
End(i64)
Set 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.
Current(i64)
Set the offset to the current position 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.
Trait Implementations
impl Copy for SeekFrom
impl Eq for SeekFrom
impl Clone for SeekFrom
fn clone(&self) -> SeekFrom
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for SeekFrom
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.