pub enum SeekFrom {
Start(u64),
End(i64),
Current(i64),
}
Expand description
Used with File::seek
to specify the starting point and offset.
This is just a copy of std::io::SeekFrom
, included here to allow this
crate to work in no_std
environments. If this crate’s std
feature
is enabled then SeekFrom
can convert to and from std::io::SeekFrom
.
Variants§
Implementations§
Source§impl SeekFrom
impl SeekFrom
pub const fn for_raw_offset(self) -> loff_t
pub const fn for_raw_whence(self) -> int
pub const fn for_raw_uwhence(self) -> uint
Trait Implementations§
impl Copy for SeekFrom
impl Eq for SeekFrom
impl StructuralPartialEq for SeekFrom
Auto Trait Implementations§
impl Freeze for SeekFrom
impl RefUnwindSafe for SeekFrom
impl Send for SeekFrom
impl Sync for SeekFrom
impl Unpin 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