Struct jlrs::value::method::Method[][src]

#[repr(transparent)]pub struct Method<'frame>(_, _);

This type describes a single method definition, and stores data shared by the specializations of a function.

Implementations

impl<'frame> Method<'frame>[src]

pub fn name(self) -> Symbol<'frame>[src]

Method name for error reporting

pub fn module(self) -> Module<'frame>[src]

Method module

pub fn file(self) -> Symbol<'frame>[src]

Method file

pub fn line(self) -> i32[src]

Method line in file

pub fn primary_world(self) -> usize[src]

The primary_world field.

pub fn deleted_world(self) -> usize[src]

The deleted_world field.

pub fn signature(self) -> Value<'frame, 'static>[src]

Method's type signature.

pub fn ambiguous(self) -> Value<'frame, 'static>[src]

List of potentially-ambiguous methods (nothing = none, Vector{Any} of TypeMapEntry otherwise)

pub fn resorted(self) -> Value<'frame, 'static>[src]

Forward references to later items (typemap entries) which might sort before this one

pub fn specializations(self) -> SimpleVector<'frame>[src]

Table of all Method specializations, allocated as [hashable, ..., NULL, linear, ....]

pub fn speckeyset(self) -> Array<'frame, 'static>[src]

Index lookup by hash into specializations

pub fn slot_syms(self) -> Value<'frame, 'static>[src]

Compacted list of slot names (String)

pub fn source(self) -> Option<Value<'frame, 'static>>[src]

pub fn unspecialized(self) -> Option<MethodInstance<'frame>>[src]

Unspecialized executable method instance, or None

pub fn generator(self) -> Option<Value<'frame, 'static>>[src]

Executable code-generating function if available

pub fn roots(self) -> Option<Array<'frame, 'static>>[src]

Pointers in generated code (shared to reduce memory), or None

pub fn ccallable(self) -> Option<SimpleVector<'frame>>[src]

SimpleVector(rettype, sig) if a ccallable entry point is requested for this

pub fn invokes(self) -> Value<'frame, 'static>[src]

Cache of specializations of this method for invoke(), i.e. cases where this method was called even though it was not necessarily the most specific for the argument types.

pub fn n_args(self) -> i32[src]

The n_args field.

pub fn called(self) -> i32[src]

Bit flags: whether each of the first 8 arguments is called

pub fn nospecialize(self) -> i32[src]

Bit flags: which arguments should not be specialized

pub fn nkw(self) -> i32[src]

Number of leading arguments that are actually keyword arguments of another method.

pub fn is_varargs(self) -> bool[src]

The is_varargs field.

pub fn pure(self) -> bool[src]

The pure field.

pub fn as_value(self) -> Value<'frame, 'static>[src]

Convert self to a Value.

Trait Implementations

impl<'frame, 'data> Cast<'frame, 'data> for Method<'frame>[src]

type Output = Self

impl<'frame> Clone for Method<'frame>[src]

impl<'frame> Copy for Method<'frame>[src]

impl<'frame> Eq for Method<'frame>[src]

impl<'frame> Hash for Method<'frame>[src]

impl<'frame> Into<Value<'frame, 'static>> for Method<'frame>[src]

impl<'frame> JuliaType for Method<'frame>[src]

impl<'frame> JuliaTypecheck for Method<'frame>[src]

impl<'frame> PartialEq<Method<'frame>> for Method<'frame>[src]

impl<'frame> StructuralEq for Method<'frame>[src]

impl<'frame> StructuralPartialEq for Method<'frame>[src]

impl<'frame> ValidLayout for Method<'frame>[src]

Auto Trait Implementations

impl<'frame> RefUnwindSafe for Method<'frame>[src]

impl<'frame> !Send for Method<'frame>[src]

impl<'frame> !Sync for Method<'frame>[src]

impl<'frame> Unpin for Method<'frame>[src]

impl<'frame> UnwindSafe for Method<'frame>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.