Struct hyperscan::ScratchRef
source · [−]pub struct ScratchRef(_);
Expand description
A borrowed reference to a Scratch
.
Implementations
Trait Implementations
sourceimpl AsMut<ScratchRef> for Scratch
impl AsMut<ScratchRef> for Scratch
sourcefn as_mut(&mut self) -> &mut ScratchRef
fn as_mut(&mut self) -> &mut ScratchRef
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<ScratchRef> for Scratch
impl AsRef<ScratchRef> for Scratch
sourcefn as_ref(&self) -> &ScratchRef
fn as_ref(&self) -> &ScratchRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<ScratchRef> for Scratch
impl Borrow<ScratchRef> for Scratch
sourcefn borrow(&self) -> &ScratchRef
fn borrow(&self) -> &ScratchRef
Immutably borrows from an owned value. Read more
sourceimpl BorrowMut<ScratchRef> for Scratch
impl BorrowMut<ScratchRef> for Scratch
sourcefn borrow_mut(&mut self) -> &mut ScratchRef
fn borrow_mut(&mut self) -> &mut ScratchRef
Mutably borrows from an owned value. Read more
sourceimpl ForeignTypeRef for ScratchRef
impl ForeignTypeRef for ScratchRef
type CType = hs_scratch
type CType = hs_scratch
The raw C type.
sourceunsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
sourceimpl ToOwned for ScratchRef
impl ToOwned for ScratchRef
impl Send for ScratchRef
Auto Trait Implementations
impl !RefUnwindSafe for ScratchRef
impl !Sync for ScratchRef
impl Unpin for ScratchRef
impl UnwindSafe for ScratchRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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