Struct expry::memorypool::MemoryScope
source · [−]pub struct MemoryScope<'c> { /* private fields */ }
Implementations
sourceimpl<'c> MemoryScope<'c>
impl<'c> MemoryScope<'c>
pub fn rewind(&mut self) -> MemoryScope<'_>
pub fn clear(&mut self) -> MemoryScope<'_>
pub fn alloc<'b, T>(&mut self, count: usize) -> &'b mut [T]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
'c: 'b,
pub fn copy_u8<'b>(&mut self, bytes: &[u8]) -> &'b mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
'c: 'b,
pub fn concat_u8<'b>(&mut self, chunks: &[&[u8]]) -> &'b mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
'c: 'b,
pub fn concat_str<'b>(&mut self, chunks: &[&str]) -> &'b mut str where
'c: 'b,
pub fn copy_str<'b>(&mut self, str: &str) -> &'b mut str where
'c: 'b,
pub fn copy_hex_str<'b>(&mut self, str: &str) -> &'b mut str where
'c: 'b,
pub fn copy_hex<'b>(&mut self, s: &[u8]) -> &'b mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
'c: 'b,
pub fn copy_unhex<'b>(
&mut self,
s: &[u8]
) -> Result<&'b mut [u8], EncodingError> where
'c: 'b,
pub fn copy_with_replacement<'b>(
&mut self,
str: &'b [u8],
replace: fn(_: u8) -> Result<Option<&'static [u8]>, EncodingError>
) -> Result<&'b [u8], EncodingError> where
'c: 'b,
pub fn copy_with_dynamic_replacement<'b>(
&mut self,
str: &'b [u8],
replace: ReplaceFn
) -> Result<&'b [u8], EncodingError> where
'c: 'b,
pub fn write_fmt<'b>(&mut self, args: Arguments<'_>) -> &'b str where
'c: 'b,
pub fn array_from_iter<'b, I: Iterator<Item = T>, T: Copy>(
&mut self,
iter: I
) -> &'b [T]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
'c: 'b,
Trait Implementations
Auto Trait Implementations
impl<'c> RefUnwindSafe for MemoryScope<'c>
impl<'c> !Send for MemoryScope<'c>
impl<'c> !Sync for MemoryScope<'c>
impl<'c> Unpin for MemoryScope<'c>
impl<'c> !UnwindSafe for MemoryScope<'c>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more