#[repr(transparent)]pub struct Scratch(_);
Expand description
A large enough region of scratch space to support a given database.
Methods from Deref<Target = ScratchRef>
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 Deref for Scratch
impl Deref for Scratch
type Target = ScratchRef
type Target = ScratchRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &ScratchRef
fn deref(&self) -> &ScratchRef
Dereferences the value.
sourceimpl DerefMut for Scratch
impl DerefMut for Scratch
sourcefn deref_mut(&mut self) -> &mut ScratchRef
fn deref_mut(&mut self) -> &mut ScratchRef
Mutably dereferences the value.
sourceimpl ForeignType for Scratch
impl ForeignType for Scratch
type CType = ch_scratch
type CType = ch_scratch
The raw C type.
type Ref = ScratchRef
type Ref = ScratchRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut ch_scratch_t) -> Scratch
unsafe fn from_ptr(ptr: *mut ch_scratch_t) -> Scratch
Constructs an instance of this type from its raw type. Read more
sourcefn as_ptr(&self) -> *mut ch_scratch_t
fn as_ptr(&self) -> *mut ch_scratch_t
Returns a raw pointer to the wrapped value.
impl Send for Scratch
Auto Trait Implementations
impl RefUnwindSafe for Scratch
impl !Sync for Scratch
impl Unpin for Scratch
impl UnwindSafe for Scratch
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