Enum
SeekFrom
pub enum SeekFrom {
Start(u64),
End(i64),
Current(i64),
}Variants
Start(u64)
End(i64)
Current(i64)
Trait Implementations
impl Archive for SeekFromwhere
u64: Archive,
i64: Archive,
impl Archive for SeekFromwhere
u64: Archive,
i64: Archive,
type Archived = ArchivedSeekFrom
type Archived = ArchivedSeekFrom
The archived representation of this type. Read more
type Resolver = SeekFromResolver
type Resolver = SeekFromResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl Debug for SeekFrom
impl Debug for SeekFrom
impl<__D: Fallible + ?Sized> Deserialize<SeekFrom, __D> for Archived<SeekFrom>where
u64: Archive,
<u64 as Archive>::Archived: Deserialize<u64, __D>,
i64: Archive,
<i64 as Archive>::Archived: Deserialize<i64, __D>,
impl<__D: Fallible + ?Sized> Deserialize<SeekFrom, __D> for Archived<SeekFrom>where
u64: Archive,
<u64 as Archive>::Archived: Deserialize<u64, __D>,
i64: Archive,
<i64 as Archive>::Archived: Deserialize<i64, __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<SeekFrom, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<SeekFrom, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl From<SeekFrom> for SeekFrom
impl From<SeekFrom> for SeekFrom
impl From<SeekFrom> for SeekFrom
impl From<SeekFrom> for SeekFrom
fn from(from: SeekFrom) -> Self
fn from(from: SeekFrom) -> Self
Converts to this type from the input type.
impl<__S: Fallible + ?Sized> Serialize<__S> for SeekFromwhere
u64: Serialize<__S>,
i64: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for SeekFromwhere
u64: Serialize<__S>,
i64: Serialize<__S>,
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.