Struct aob::StaticNeedle
source · pub struct StaticNeedle<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> { /* private fields */ }
Expand description
The compile-time variant of a Needle
.
StaticNeedle
is intended for embedding into executables at compile-time,
such that no allocations or validation is needed to perform a match on a
haystack at run-time.
You should never need to name this type directly:
- If you need to instantiate one, please use the
aob!
macro instead. - If you need to use one in an api, please use the
Needle
trait instead.
Trait Implementations§
source§impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Clone for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Clone for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
source§fn clone(&self) -> StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
fn clone(&self) -> StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Debug for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Debug for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
Auto Trait Implementations§
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Freeze for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> RefUnwindSafe for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Send for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Sync for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> Unpin for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
impl<const NEEDLE_LEN: usize, const BUFFER_LEN: usize> UnwindSafe for StaticNeedle<NEEDLE_LEN, BUFFER_LEN>
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
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
)