Struct jlrs::value::type_name::TypeName [−][src]
Describes the syntactic structure of a type and stores all data common to different
instantiations of the type, including a cache for hash-consed allocation of DataType
s.
Implementations
impl<'frame> TypeName<'frame>
[src]
pub fn name(self) -> Symbol<'frame>
[src]
The name
field.
pub fn module(self) -> Module<'frame>
[src]
The module
field.
pub fn names(self) -> SimpleVector<'frame>
[src]
Field names.
pub fn wrapper(self) -> Value<'frame, 'static>
[src]
Either the only instantiation of the type (if no parameters) or a UnionAll
accepting
parameters to make an instantiation.
pub fn cache(self) -> SimpleVector<'frame>
[src]
Sorted array.
pub fn linearcache(self) -> SimpleVector<'frame>
[src]
Unsorted array.
pub fn hash(self) -> isize
[src]
The hash
field.
pub fn mt(self) -> MethodTable<'frame>
[src]
The mt
field.
pub fn partial(self) -> Array<'frame, 'static>
[src]
Incomplete instantiations of this type.
pub fn as_value(self) -> Value<'frame, 'static>
[src]
Convert self
to a Value
.
impl<'base> TypeName<'base>
[src]
pub fn vecelement_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
VecElement
.
pub fn array_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
Array
.
pub fn pointer_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
Ptr
.
pub fn llvmpointer_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
LLVMPtr
.
pub fn namedtuple_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
NamedTuple
.
pub fn vararg_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
Vararg
.
pub fn type_typename(_: Global<'base>) -> Self
[src]
The typename of the UnionAll
Type
.
pub fn tuple_typename(_: Global<'base>) -> Self
[src]
The typename of the DataType
Tuple
.
Trait Implementations
impl<'frame, 'data> Cast<'frame, 'data> for TypeName<'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 TypeName<'frame>
[src]
impl<'frame> Copy for TypeName<'frame>
[src]
impl<'scope> Debug for TypeName<'scope>
[src]
impl<'frame> Eq for TypeName<'frame>
[src]
impl<'frame> Hash for TypeName<'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 TypeName<'frame>
[src]
impl<'frame> JuliaType for TypeName<'frame>
[src]
unsafe fn julia_type() -> *mut jl_datatype_t
[src]
impl<'frame> JuliaTypecheck for TypeName<'frame>
[src]
unsafe fn julia_typecheck(t: DataType<'_>) -> bool
[src]
impl<'frame> PartialEq<TypeName<'frame>> for TypeName<'frame>
[src]
fn eq(&self, other: &TypeName<'frame>) -> bool
[src]
fn ne(&self, other: &TypeName<'frame>) -> bool
[src]
impl<'frame> StructuralEq for TypeName<'frame>
[src]
impl<'frame> StructuralPartialEq for TypeName<'frame>
[src]
impl<'frame> ValidLayout for TypeName<'frame>
[src]
unsafe fn valid_layout(v: Value<'_, '_>) -> bool
[src]
Auto Trait Implementations
impl<'frame> RefUnwindSafe for TypeName<'frame>
impl<'frame> !Send for TypeName<'frame>
impl<'frame> !Sync for TypeName<'frame>
impl<'frame> Unpin for TypeName<'frame>
impl<'frame> UnwindSafe for TypeName<'frame>
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>,