#[repr(C)]pub enum Offset {
FromStart(u32),
FromCurrent(i32),
FromEnd(u32),
}
Expand description
Represents how far to move the current read/write pointer through a file. You can specify the position as relative to the start of the file, relative to the end of the file, or relative to the current pointer position.
Variants§
FromStart(u32)
Set the pointer to this many bytes from the start of the file
FromCurrent(i32)
Set the pointer to this many bytes from the current position (+ve is forwards, -ve is backwards)
FromEnd(u32)
Set the pointer to this many bytes back from the end of the file
Trait Implementations§
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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