#[repr(i32)]pub enum Whence {
SeekSet = 0,
SeekCur = 1,
SeekEnd = 2,
SeekData = 3,
SeekHole = 4,
}fs only.Variants§
SeekSet = 0
Specify an offset relative to the start of the file.
SeekCur = 1
Specify an offset relative to the current file location.
SeekEnd = 2
Specify an offset relative to the end of the file.
SeekData = 3
Specify an offset relative to the next location in the file greater than or equal to offset that contains some data. If offset points to some data, then the file offset is set to offset.
SeekHole = 4
Specify an offset relative to the next hole in the file greater than or equal to offset. If offset points into the middle of a hole, then the file offset should be set to offset. If there is no hole past offset, then the file offset should be adjusted to the end of the file (i.e., there is an implicit hole at the end of any file).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Whence
impl RefUnwindSafe for Whence
impl Send for Whence
impl Sync for Whence
impl Unpin for Whence
impl UnwindSafe for Whence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
SeekSet: 0 bytesSeekCur: 0 bytesSeekEnd: 0 bytesSeekData: 0 bytesSeekHole: 0 bytes