Struct jlrs::value::union_all::UnionAll [−][src]
An iterated union of types. If a struct field has a parametric type with some of its
parameters unknown, its type is represented by a UnionAll
.
Implementations
impl<'frame> UnionAll<'frame>
[src]
pub fn base_type(self) -> DataType<'frame>
[src]
The type at the bottom of this UnionAll
.
pub fn body(self) -> Value<'frame, 'static>
[src]
The body of this UnionAll
. This is either another UnionAll
or a DataType
.
pub fn var(self) -> TypeVar<'frame>
[src]
The type variable associated with this “layer” of the UnionAll
.
pub fn as_value(self) -> Value<'frame, 'static>
[src]
Convert self
to a Value
.
impl<'base> UnionAll<'base>
[src]
pub fn type_type(_: Global<'base>) -> Self
[src]
The UnionAll
Type
.
pub fn anytuple_type_type(_: Global<'base>) -> Self
[src]
Type{T} where T<:Tuple
pub fn vararg_type(_: Global<'base>) -> Self
[src]
The UnionAll
Vararg
.
pub fn abstractarray_type(_: Global<'base>) -> Self
[src]
The UnionAll
AbstractArray
.
pub fn densearray_type(_: Global<'base>) -> Self
[src]
The UnionAll
DenseArray
.
pub fn array_type(_: Global<'base>) -> Self
[src]
The UnionAll
Array
.
pub fn pointer_type(_: Global<'base>) -> Self
[src]
The UnionAll
Ptr
.
pub fn llvmpointer_type(_: Global<'base>) -> Self
[src]
The UnionAll
LLVMPtr
.
pub fn ref_type(_: Global<'base>) -> Self
[src]
The UnionAll
Ref
.
pub fn namedtuple_type(_: Global<'base>) -> Self
[src]
The UnionAll
NamedTuple
.
Trait Implementations
impl<'frame, 'data> Cast<'frame, 'data> for UnionAll<'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 UnionAll<'frame>
[src]
impl<'frame> Copy for UnionAll<'frame>
[src]
impl<'scope> Debug for UnionAll<'scope>
[src]
impl<'frame> Eq for UnionAll<'frame>
[src]
impl<'frame> Hash for UnionAll<'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 UnionAll<'frame>
[src]
impl<'frame> JuliaType for UnionAll<'frame>
[src]
unsafe fn julia_type() -> *mut jl_datatype_t
[src]
impl<'frame> JuliaTypecheck for UnionAll<'frame>
[src]
unsafe fn julia_typecheck(t: DataType<'_>) -> bool
[src]
impl<'frame> PartialEq<UnionAll<'frame>> for UnionAll<'frame>
[src]
fn eq(&self, other: &UnionAll<'frame>) -> bool
[src]
fn ne(&self, other: &UnionAll<'frame>) -> bool
[src]
impl<'frame> StructuralEq for UnionAll<'frame>
[src]
impl<'frame> StructuralPartialEq for UnionAll<'frame>
[src]
impl<'frame> ValidLayout for UnionAll<'frame>
[src]
unsafe fn valid_layout(v: Value<'_, '_>) -> bool
[src]
Auto Trait Implementations
impl<'frame> RefUnwindSafe for UnionAll<'frame>
impl<'frame> !Send for UnionAll<'frame>
impl<'frame> !Sync for UnionAll<'frame>
impl<'frame> Unpin for UnionAll<'frame>
impl<'frame> UnwindSafe for UnionAll<'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>,