pub enum TypeLiteral {
Int,
Char,
Float,
String,
}Expand description
The type of an opaque scalar: a type nothing in the language builds or inspects, whose values arrive as literals.
Bool is not one of them: it is a scalar and an ordinary union, so its
type is a Type::Adt like any other union’s, built by this module’s bool_type.
Variants§
Trait Implementations§
Source§impl Clone for TypeLiteral
impl Clone for TypeLiteral
Source§fn clone(&self) -> TypeLiteral
fn clone(&self) -> TypeLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeLiteral
impl Debug for TypeLiteral
impl Eq for TypeLiteral
Source§impl Hash for TypeLiteral
impl Hash for TypeLiteral
Source§impl PartialEq for TypeLiteral
impl PartialEq for TypeLiteral
impl StructuralPartialEq for TypeLiteral
Auto Trait Implementations§
impl Freeze for TypeLiteral
impl RefUnwindSafe for TypeLiteral
impl Send for TypeLiteral
impl Sync for TypeLiteral
impl Unpin for TypeLiteral
impl UnsafeUnpin for TypeLiteral
impl UnwindSafe for TypeLiteral
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,
§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.§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