[][src]Enum cpclib_sna::SnapshotMemory

pub enum SnapshotMemory {
    Empty([u8; 0]),
    SixtyFourKb([u8; 65536]),
    OneHundredTwentyHeightKb([u8; 131072]),
}

3 different states are possible. No memory, 64kb or 128kb

Variants

Empty([u8; 0])

No memory is stored within the snapshot

SixtyFourKb([u8; 65536])

A 64kb page is stored within the snapshot

OneHundredTwentyHeightKb([u8; 131072])

A 128kb page is stored within the snapshot

Methods

impl SnapshotMemory[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_64k(&self) -> bool[src]

pub fn is_128k(&self) -> bool[src]

pub fn to_chunks(&self) -> Vec<SnapshotChunk>[src]

Build the chunk representation for the memory sapcz

Trait Implementations

impl Clone for SnapshotMemory[src]

impl Copy for SnapshotMemory[src]

impl Debug for SnapshotMemory[src]

impl Default for SnapshotMemory[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.