pub struct SerializedRegion {
pub region_type: u16,
pub offset: u64,
pub bytes: Vec<u8>,
}Fields§
§region_type: u16§offset: u64§bytes: Vec<u8>Implementations§
Source§impl SerializedRegion
impl SerializedRegion
pub fn encoded_len(&self) -> usize
pub fn to_bytes(&self) -> Result<Vec<u8>, FormatError>
Trait Implementations§
Source§impl Clone for SerializedRegion
impl Clone for SerializedRegion
Source§fn clone(&self) -> SerializedRegion
fn clone(&self) -> SerializedRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializedRegion
impl Debug for SerializedRegion
Source§impl PartialEq for SerializedRegion
impl PartialEq for SerializedRegion
Source§fn eq(&self, other: &SerializedRegion) -> bool
fn eq(&self, other: &SerializedRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SerializedRegion
impl StructuralPartialEq for SerializedRegion
Auto Trait Implementations§
impl Freeze for SerializedRegion
impl RefUnwindSafe for SerializedRegion
impl Send for SerializedRegion
impl Sync for SerializedRegion
impl Unpin for SerializedRegion
impl UnsafeUnpin for SerializedRegion
impl UnwindSafe for SerializedRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more