[−][src]Enum cpclib_sna::SnapshotFlag
Encode a flag of the snaphot
Variants
Naming of this one is inapproriate as documentatoin state: This byte in the snapshot represents the multi-configuration register of the Gate-Array. This byte is the last byte written to this register. For CPCEMU compatibility, bit 7 should be set to "1" and bit 6 and bit 5 set to "0". Use it to select screen mode
Methods
impl SnapshotFlag
[src]
pub fn enumerate() -> [Self; 67]
[src]
pub fn offset(&self) -> usize
[src]
Return the location in the header for the flag (and its potential index)
pub fn indice(&self) -> Option<usize>
[src]
pub fn set_indice(&mut self, indice: usize) -> Result<(), SnapshotError>
[src]
pub fn base(&self) -> usize
[src]
Return the header base position that corresponds to the flag
pub fn nb_elems(&self) -> usize
[src]
Return the number of elements the flag can handle
pub fn elem_size(&self) -> usize
[src]
Return the size of one unique element
pub fn comment(&self) -> &str
[src]
Trait Implementations
impl Clone for SnapshotFlag
[src]
fn clone(&self) -> SnapshotFlag
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SnapshotFlag
[src]
impl Debug for SnapshotFlag
[src]
impl FromStr for SnapshotFlag
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<SnapshotFlag> for SnapshotFlag
[src]
fn eq(&self, other: &SnapshotFlag) -> bool
[src]
fn ne(&self, other: &SnapshotFlag) -> bool
[src]
impl StructuralPartialEq for SnapshotFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for SnapshotFlag
impl Send for SnapshotFlag
impl Sync for SnapshotFlag
impl Unpin for SnapshotFlag
impl UnwindSafe for SnapshotFlag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,