[−][src]Enum cpclib_sna::SnapshotChunk
Represents any kind of chunks in order to manipulate them easily based on their semantic
Variants
Memory(MemoryChunk)
The chunk is a memory chunk
Unknown(UnknownChunk)
The type of the chunk is unknown
Methods
impl SnapshotChunk
[src]
pub fn is_memory_chunk(&self) -> bool
[src]
pub fn memory_chunk(&self) -> Option<&MemoryChunk>
[src]
pub fn code(&self) -> &[u8; 4]
[src]
Provides the code of the chunk
pub fn size(&self) -> usize
[src]
pub fn size_as_array(&self) -> [u8; 4]
[src]
pub fn data(&self) -> &[u8]
[src]
Trait Implementations
impl Clone for SnapshotChunk
[src]
fn clone(&self) -> SnapshotChunk
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SnapshotChunk
[src]
impl From<MemoryChunk> for SnapshotChunk
[src]
fn from(chunk: MemoryChunk) -> Self
[src]
impl From<UnknownChunk> for SnapshotChunk
[src]
fn from(chunk: UnknownChunk) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for SnapshotChunk
impl Send for SnapshotChunk
impl Sync for SnapshotChunk
impl Unpin for SnapshotChunk
impl UnwindSafe for SnapshotChunk
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>,