pub enum SeekFrom {
Start(u32),
End(i32),
Current(i32),
}Expand description
Defines the origin for a seek operation, used by File::seek.
Variants§
Start(u32)
Seek from the beginning of the stream.
End(i32)
Seek from the end of the stream.
Current(i32)
Seek from the current position.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeekFrom
impl RefUnwindSafe for SeekFrom
impl Send for SeekFrom
impl Sync for SeekFrom
impl Unpin for SeekFrom
impl UnsafeUnpin for SeekFrom
impl UnwindSafe for SeekFrom
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