Skip to main content

JitSymbol

Struct JitSymbol 

Source
pub struct JitSymbol<'jit, F: Copy> { /* private fields */ }
Expand description

A symbol looked up in SimpleJIT, typed as the function pointer F.

Borrows the SimpleJIT it was looked up from, so it can’t outlive the JIT (and therefore can’t outlive the compiled code it points into). Dereferences to F, so it can be called directly.

Trait Implementations§

Source§

impl<'jit, F: Copy> Deref for JitSymbol<'jit, F>

Source§

type Target = F

The resulting type after dereferencing.
Source§

fn deref(&self) -> &F

Dereferences the value.

Auto Trait Implementations§

§

impl<'jit, F> !Send for JitSymbol<'jit, F>

§

impl<'jit, F> !Sync for JitSymbol<'jit, F>

§

impl<'jit, F> Freeze for JitSymbol<'jit, F>
where F: Freeze,

§

impl<'jit, F> RefUnwindSafe for JitSymbol<'jit, F>
where F: RefUnwindSafe,

§

impl<'jit, F> Unpin for JitSymbol<'jit, F>
where F: Unpin,

§

impl<'jit, F> UnsafeUnpin for JitSymbol<'jit, F>
where F: UnsafeUnpin,

§

impl<'jit, F> UnwindSafe for JitSymbol<'jit, F>
where F: 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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.