Enum semihosting_files::SeekFrom[][src]

pub enum SeekFrom {
    Start(usize),
    End(isize),
}
Expand description

Specifies the cursor position for File::seek

Variants

Start(usize)

Sets the cursor to the specified number of bytes, starting from the beginning of the file

The provided number must be ranging from 0 to the length of the file

Tuple Fields of Start

0: usize
End(isize)

Sets the cursor to the length of the file, plus the specified amount.

Note that the cursor cannot be set to a absolute position greater than the length of the file, so the relative position provided must be number ranging from the negative length of the file to 0.

Tuple Fields of End

0: isize

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

Performs the conversion.

Performs the conversion.

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.