Struct zydis::ffi::FormatterBuffer
source · #[repr(C)]pub struct FormatterBuffer { /* private fields */ }
Implementations§
source§impl FormatterBuffer
impl FormatterBuffer
sourcepub fn get_string(&mut self) -> Result<&mut ZyanString>
pub fn get_string(&mut self) -> Result<&mut ZyanString>
Returns the ZyanString
associated with this buffer.
The returned string always refers to the literal value of the most
recently added token and remains valid after calling append
or
restore
.
sourcepub fn get_token(&self) -> Result<&FormatterToken<'_>>
pub fn get_token(&self) -> Result<&FormatterToken<'_>>
Returns the most recently added FormatterToken
.
sourcepub fn remember(&self) -> Result<FormatterBufferState>
pub fn remember(&self) -> Result<FormatterBufferState>
Returns a snapshot of the buffer-state.
sourcepub fn restore(&mut self, state: FormatterBufferState) -> Result<()>
pub fn restore(&mut self, state: FormatterBufferState) -> Result<()>
Restores a previously saved buffer-state.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FormatterBuffer
impl !Send for FormatterBuffer
impl !Sync for FormatterBuffer
impl Unpin for FormatterBuffer
impl UnwindSafe for FormatterBuffer
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