#[repr(i32)]pub enum Whence {
SeekSet = 0,
SeekCur = 1,
SeekEnd = 2,
SeekData = 3,
SeekHole = 4,
}
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)