Trait TableEntry

Source
pub trait TableEntry
where Self: Sized,
{ // Required methods fn try_from_plain(value: u64, header: &Header) -> Result<Self>; fn to_plain(&self) -> u64; }
Expand description

Generic trait for qcow2 table entries (L1, L2, refcount table).

Required Methods§

Source

fn try_from_plain(value: u64, header: &Header) -> Result<Self>

Load the given raw value, checking it for validity.

Source

fn to_plain(&self) -> u64

Return the contained raw value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§