Struct RPtrParam

Source
pub struct RPtrParam<Obj: Any, T: SEXPbucket> { /* private fields */ }

Implementations§

Source§

impl<Obj: Any, T: SEXPbucket> RPtrParam<Obj, T>

Source

pub fn tag(self, tag_: SEXP) -> RPtrParam<Obj, T>

Source

pub fn prot(self, prot_: SEXP) -> RPtrParam<Obj, T>

Source

pub fn drop(self, finalizer_: bool) -> RPtrParam<Obj, T>

Source

pub fn finalizer( self, finalizer_: Option<extern "C" fn(arg1: SEXP)>, ) -> RPtrParam<Obj, T>

Source

pub fn onexit(self, exit: bool) -> RPtrParam<Obj, T>

Source

pub fn done(self, ptr: Box<Obj>) -> RPtrM<Obj, T>
where T: SEXPbucket,

Trait Implementations§

Source§

impl<Obj: Any, T: SEXPbucket> Default for RPtrParam<Obj, T>

Source§

fn default() -> RPtrParam<Obj, T>

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

Auto Trait Implementations§

§

impl<Obj, T> Freeze for RPtrParam<Obj, T>

§

impl<Obj, T> RefUnwindSafe for RPtrParam<Obj, T>

§

impl<Obj, T> !Send for RPtrParam<Obj, T>

§

impl<Obj, T> !Sync for RPtrParam<Obj, T>

§

impl<Obj, T> Unpin for RPtrParam<Obj, T>
where Obj: Unpin, T: Unpin,

§

impl<Obj, T> UnwindSafe for RPtrParam<Obj, T>
where Obj: UnwindSafe, T: UnwindSafe,

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<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, 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.