Skip to main content

SrcCtx1

Struct SrcCtx1 

Source
#[repr(C)]
pub struct SrcCtx1<T> { pub version: Index, pub info: *mut T, pub retain: Option<extern "C-unwind" fn(info: *const T) -> *mut T>, pub release: Option<extern "C-unwind" fn(info: *const T)>, pub desc: Option<extern "C-unwind" fn(info: *const T) -> R<String>>, pub equal: Option<extern "C-unwind" fn(info0: *const T, info1: *const T) -> bool>, pub hash: Option<extern "C-unwind" fn(info: *const T) -> HashCode>, pub port: Option<extern "C-unwind" fn(info: *mut T) -> Port>, pub perform: Option<extern "C-unwind" fn(msg: *mut c_void, size: Index, allocator: Option<&Allocator>, info: *mut T) -> *mut c_void>, }

Fields§

§version: Index§info: *mut T§retain: Option<extern "C-unwind" fn(info: *const T) -> *mut T>§release: Option<extern "C-unwind" fn(info: *const T)>§desc: Option<extern "C-unwind" fn(info: *const T) -> R<String>>§equal: Option<extern "C-unwind" fn(info0: *const T, info1: *const T) -> bool>§hash: Option<extern "C-unwind" fn(info: *const T) -> HashCode>§port: Option<extern "C-unwind" fn(info: *mut T) -> Port>§perform: Option<extern "C-unwind" fn(msg: *mut c_void, size: Index, allocator: Option<&Allocator>, info: *mut T) -> *mut c_void>

Trait Implementations§

Source§

impl<T> Default for SrcCtx1<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> !Send for SrcCtx1<T>

§

impl<T> !Sync for SrcCtx1<T>

§

impl<T> Freeze for SrcCtx1<T>

§

impl<T> RefUnwindSafe for SrcCtx1<T>
where T: RefUnwindSafe,

§

impl<T> Unpin for SrcCtx1<T>

§

impl<T> UnsafeUnpin for SrcCtx1<T>

§

impl<T> UnwindSafe for SrcCtx1<T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.