pub enum Whence {
Size,
Set,
Cur,
End,
}Expand description
Mode argument to IoContext::seek.
Variants§
Size
Return the size (if possible) without actually seeking.
Set
Sets a position relative to the start of the file, returning the new position.
Cur
Sets a position relative to the current position, returning the new position.
End
Sets a position relative to the end of the file, returning the new position.
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