pub enum SeekFrom {
    Start(u32),
    End(i32),
    Current(i32),
}
Expand description

This is essentially equivalent to the SeekFrom type from the rust standard library, but reproduced here to avoid dependency on std::io, as well as to use 32-bit integers to specify positions. This saves some computation and space, and is adequate for the kind of data sizes that are possible in smart contracts.

Variants

Start(u32)

End(i32)

Current(i32)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.