Struct mozjs::jsapi::JS::BufferContentsDeleter
source · #[repr(C)]pub struct BufferContentsDeleter {
pub freeFunc_: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>,
pub userData_: *mut c_void,
}
Expand description
UniquePtr deleter for external buffer contents.
Fields§
§freeFunc_: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>
§userData_: *mut c_void
Trait Implementations§
source§impl Clone for BufferContentsDeleter
impl Clone for BufferContentsDeleter
source§fn clone(&self) -> BufferContentsDeleter
fn clone(&self) -> BufferContentsDeleter
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 Debug for BufferContentsDeleter
impl Debug for BufferContentsDeleter
source§impl PartialEq for BufferContentsDeleter
impl PartialEq for BufferContentsDeleter
source§fn eq(&self, other: &BufferContentsDeleter) -> bool
fn eq(&self, other: &BufferContentsDeleter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BufferContentsDeleter
impl StructuralPartialEq for BufferContentsDeleter
Auto Trait Implementations§
impl Freeze for BufferContentsDeleter
impl RefUnwindSafe for BufferContentsDeleter
impl !Send for BufferContentsDeleter
impl !Sync for BufferContentsDeleter
impl Unpin for BufferContentsDeleter
impl UnwindSafe for BufferContentsDeleter
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more