Enum semihosting_files::SeekFrom [−][src]
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