SeekFrom in std::io - Rust (original) (raw)

Enum 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.

§1.0.0

Sets the offset to the provided number of bytes.

§1.0.0

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.

§1.0.0

Sets 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.

1.0.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

1.0.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

§

§

§

§

§

§