pub enum FileSeekFrom {
Start(u64),
End(i64),
Current(i64),
}Expand description
A SeekFrom type which implements serde.
Variants§
Trait Implementations§
source§impl Clone for FileSeekFrom
impl Clone for FileSeekFrom
source§fn clone(&self) -> FileSeekFrom
fn clone(&self) -> FileSeekFrom
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FileSeekFrom
impl Debug for FileSeekFrom
source§impl<'de> Deserialize<'de> for FileSeekFrom
impl<'de> Deserialize<'de> for FileSeekFrom
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FileSeekFrom> for SeekFrom
impl From<FileSeekFrom> for SeekFrom
source§fn from(value: FileSeekFrom) -> Self
fn from(value: FileSeekFrom) -> Self
Converts to this type from the input type.
source§impl From<SeekFrom> for FileSeekFrom
impl From<SeekFrom> for FileSeekFrom
source§impl PartialEq<FileSeekFrom> for FileSeekFrom
impl PartialEq<FileSeekFrom> for FileSeekFrom
source§fn eq(&self, other: &FileSeekFrom) -> bool
fn eq(&self, other: &FileSeekFrom) -> bool
This method tests for
self and other values to be equal, and is used
by ==.