Enum ZSeekFrom
pub enum ZSeekFrom
Enumeration of possible methods to seek within an I/O object.
It is analogous to the SeekFrom in the std library but it's here to allow this to work in no-std crates
Variants
-
Start(u64) Sets the offset to the provided number of bytes.
-
End(i64) Sets the offset to the size of this object plus the specified number of bytes.
It is possible to seek beyond the end of an object, but it's an error to seek before byte 0.
-
Current(i64) Sets the offset to the current position plus the specified number of bytes.
It is possible to seek beyond the end of an object, but it's an error to seek before byte 0.
Trait Implementations
impl Clone for ZSeekFrom
fn clone(&self) -> ZSeekFrom
impl Copy for ZSeekFrom
impl Debug for ZSeekFrom
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ZSeekFrom
impl PartialEq for ZSeekFrom
fn eq(&self, other: &ZSeekFrom) -> bool
impl StructuralPartialEq for ZSeekFrom
Auto Trait Implementations
impl Freeze for ZSeekFrom
impl RefUnwindSafe for ZSeekFrom
impl Send for ZSeekFrom
impl Sync for ZSeekFrom
impl Unpin for ZSeekFrom
impl UnsafeUnpin for ZSeekFrom
impl UnwindSafe for ZSeekFrom
Blanket Implementations
impl<T> Any for ZSeekFrom
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ZSeekFrom
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ZSeekFrom
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ZSeekFrom
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ZSeekFrom
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ZSeekFrom
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ZSeekFrom
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ZSeekFrom
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ZSeekFrom
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>