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) -> Self

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: &Self) -> 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,

impl<T> Borrow<T> for ZSeekFrom where T: ?Sized,

impl<T> BorrowMut<T> for ZSeekFrom where T: ?Sized,

impl<T> CloneToUninit for ZSeekFrom where T: Clone,

impl<T> From<T> for ZSeekFrom

impl<T> ToOwned for ZSeekFrom where T: Clone,

impl<T, U> Into<U> for ZSeekFrom where U: From<T>,

impl<T, U> TryFrom<U> for ZSeekFrom where U: Into<T>,

impl<T, U> TryInto<U> for ZSeekFrom where U: TryFrom<T>,