pub struct Type(/* private fields */);
Expand description
A value representing a type in the virtual machine.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Type> for ConstValue
impl From<Type> for ConstValue
Source§impl FromValue for Type
impl FromValue for Type
Source§fn from_value(value: Value) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
Try to convert to the given type, from the given value.
Source§impl InstallWith for Type
impl InstallWith for Type
Source§fn install_with(_: &mut Module) -> Result<(), ContextError>
fn install_with(_: &mut Module) -> Result<(), ContextError>
Hook to install more things into the module.
Source§impl IntoOutput for Type
impl IntoOutput for Type
Source§fn into_output(self) -> Result<Value, RuntimeError>
fn into_output(self) -> Result<Value, RuntimeError>
Coerce the current value into an output.
Source§impl MaybeTypeOf for Type
impl MaybeTypeOf for Type
Source§fn maybe_type_of() -> Result<DocType>
fn maybe_type_of() -> Result<DocType>
Type information for the given type.
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
Source§impl ToConstValue for Type
impl ToConstValue for Type
Source§fn to_const_value(self) -> Result<ConstValue, RuntimeError>
fn to_const_value(self) -> Result<ConstValue, RuntimeError>
Convert into a constant value.
Source§impl TypeOf for Type
impl TypeOf for Type
Source§const STATIC_TYPE_INFO: AnyTypeInfo = _
const STATIC_TYPE_INFO: AnyTypeInfo = _
Access diagnostical type information for the current type. Read more
Source§const PARAMETERS: Hash = Hash::EMPTY
const PARAMETERS: Hash = Hash::EMPTY
Type parameters for the type. Read more
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> UnsafeToValue for Twhere
T: ToValue,
impl<T> UnsafeToValue for Twhere
T: ToValue,
Source§unsafe fn unsafe_to_value(
self,
) -> Result<(Value, <T as UnsafeToValue>::Guard), RuntimeError>
unsafe fn unsafe_to_value( self, ) -> Result<(Value, <T as UnsafeToValue>::Guard), RuntimeError>
Convert into a value. Read more