Enum std_prelude::SeekFrom1.0.0 [] [src]

pub enum SeekFrom {
    Start(u64),
    End(i64),
    Current(i64),
}

Enumeration of possible methods to seek within an I/O object.

It is used by the Seek trait.

Variants

Set the offset to the provided number of bytes.

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.

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 Debug for SeekFrom
[src]

[src]

Formats the value using the given formatter.

impl PartialEq<SeekFrom> for SeekFrom
[src]

[src]

[src]

impl Eq for SeekFrom
[src]

impl Clone for SeekFrom
[src]

[src]

impl Copy for SeekFrom
[src]