Struct jlrs::value::method::Method [−][src]
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
fn cast(value: Value<'frame, 'data>) -> JlrsResult<Self::Output>
[src]
unsafe fn cast_unchecked(value: Value<'frame, 'data>) -> Self::Output
[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'frame> Into<Value<'frame, 'static>> for Method<'frame>
[src]
impl<'frame> JuliaType for Method<'frame>
[src]
unsafe fn julia_type() -> *mut jl_datatype_t
[src]
impl<'frame> JuliaTypecheck for Method<'frame>
[src]
unsafe fn julia_typecheck(t: DataType<'_>) -> bool
[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]
unsafe fn valid_layout(v: Value<'_, '_>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,