pub struct MapBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> MapBuffer<T>
impl<T: AsRef<[u8]>> MapBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
pub fn set_memory_start(&mut self, value: u64)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
pub fn set_memory_end(&mut self, value: u64)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MapBuffer<T>
pub fn set_base_address(&mut self, value: u64)
source§impl<T: AsRef<[u8]>> MapBuffer<T>
impl<T: AsRef<[u8]>> MapBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: PartialEq> PartialEq for MapBuffer<T>
impl<T: PartialEq> PartialEq for MapBuffer<T>
impl<T: Copy> Copy for MapBuffer<T>
impl<T: Eq> Eq for MapBuffer<T>
impl<T> StructuralPartialEq for MapBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for MapBuffer<T>where
T: Freeze,
impl<T> RefUnwindSafe for MapBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for MapBuffer<T>where
T: Send,
impl<T> Sync for MapBuffer<T>where
T: Sync,
impl<T> Unpin for MapBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for MapBuffer<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)