[−][src]Struct zydis::ffi::FormatterBuffer
Implementations
impl FormatterBuffer
[src]
pub fn get_string(&mut self) -> Result<&mut ZyanString>
[src]
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
.
pub fn get_token(&self) -> Result<&FormatterToken>
[src]
Returns the most recently added FormatterToken
.
pub fn append(&mut self, token: Token) -> Result<()>
[src]
Appends a new token to this buffer.
pub fn remember(&self) -> Result<FormatterBufferState>
[src]
Returns a snapshot of the buffer-state.
pub fn restore(&mut self, state: FormatterBufferState) -> Result<()>
[src]
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
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, 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>,