Enum netsblox_vm::runtime::Type
source · pub enum Type<C: CustomTypes<S>, S: System<C>> {
Bool,
Number,
String,
Image,
Audio,
List,
Closure,
Entity,
Native(<C::NativeValue as GetType>::Output),
}
Expand description
The type of a Value
.
Variants§
Trait Implementations§
source§impl<C: CustomTypes<S>, S: System<C>> PartialEq for Type<C, S>
impl<C: CustomTypes<S>, S: System<C>> PartialEq for Type<C, S>
impl<C: CustomTypes<S>, S: System<C>> Copy for Type<C, S>
impl<C: CustomTypes<S>, S: System<C>> Eq for Type<C, S>
Auto Trait Implementations§
impl<C, S> RefUnwindSafe for Type<C, S>
impl<C, S> Send for Type<C, S>
impl<C, S> Sync for Type<C, S>
impl<C, S> Unpin for Type<C, S>
impl<C, S> UnwindSafe for Type<C, S>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.