Enum twizzler_runtime_api::SeekFrom
source · pub enum SeekFrom {
Start(u64),
End(i64),
Current(i64),
}
Expand description
Enum of the possible ways to seek within a object
Variants§
Start(u64)
Sets to the offset in bytes
End(i64)
Sets to the offset relative to the end of the file
Current(i64)
Sets the offset relative to the position of the cursor
Trait Implementations§
source§impl Ord for SeekFrom
impl Ord for SeekFrom
source§impl PartialEq<SeekFrom> for SeekFrom
impl PartialEq<SeekFrom> for SeekFrom
source§impl PartialOrd<SeekFrom> for SeekFrom
impl PartialOrd<SeekFrom> for SeekFrom
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SeekFrom
impl Eq for SeekFrom
impl StructuralEq for SeekFrom
impl StructuralPartialEq for SeekFrom
Auto Trait Implementations§
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