pub struct ModeBufferGuard(/* private fields */);Expand description
Evidence for the complete mode/buffer exclusion helper. This establishes the helper’s return value only; the caller must separately prove argument setup and how it uses that return value.
Implementations§
Source§impl ModeBufferGuard
impl ModeBufferGuard
Sourcepub fn inspect(bytes: &[u8]) -> Option<Self>
pub fn inspect(bytes: &[u8]) -> Option<Self>
Match every instruction, including conditional branches and return. Unknown or truncated helpers never acquire an inferred behavior.
Sourcepub fn returns_one(self, mode: u8, buffer: u8) -> bool
pub fn returns_one(self, mode: u8, buffer: u8) -> bool
Whether the matched helper returns one for its mode and buffer inputs. A one is not itself authorization: interpretation belongs to the caller.
Trait Implementations§
Source§impl Clone for ModeBufferGuard
impl Clone for ModeBufferGuard
impl Copy for ModeBufferGuard
Source§impl Debug for ModeBufferGuard
impl Debug for ModeBufferGuard
impl Eq for ModeBufferGuard
Source§impl PartialEq for ModeBufferGuard
impl PartialEq for ModeBufferGuard
impl StructuralPartialEq for ModeBufferGuard
Auto Trait Implementations§
impl Freeze for ModeBufferGuard
impl RefUnwindSafe for ModeBufferGuard
impl Send for ModeBufferGuard
impl Sync for ModeBufferGuard
impl Unpin for ModeBufferGuard
impl UnsafeUnpin for ModeBufferGuard
impl UnwindSafe for ModeBufferGuard
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