Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Enum

SeekFrom

pub enum SeekFrom {
    Start(u64),
    End(i64),
    Current(i64),
}

Variants

Start(u64)

End(i64)

Current(i64)

Trait Implementations

impl Archive for SeekFrom
where u64: Archive, i64: Archive,

type Archived = ArchivedSeekFrom

The archived representation of this type. Read more

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

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> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

impl Debug for SeekFrom

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>

Deserializes using the given deserializer

impl From<SeekFrom> for SeekFrom

fn from(from: SeekFrom) -> Self

Converts to this type from the input type.

impl From<SeekFrom> for SeekFrom

fn from(from: SeekFrom) -> Self

Converts to this type from the input type.

impl<__S: Fallible + ?Sized> Serialize<__S> for SeekFrom
where u64: Serialize<__S>, i64: Serialize<__S>,

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.

Auto Trait Implementations

impl Freeze for SeekFrom

impl RefUnwindSafe for SeekFrom

impl Send for SeekFrom

impl Sync for SeekFrom

impl Unpin for SeekFrom

impl UnsafeUnpin for SeekFrom

impl UnwindSafe for SeekFrom