Enum ra_ap_hir_def::builtin_type::BuiltinType
source · pub enum BuiltinType {
Char,
Bool,
Str,
Int(BuiltinInt),
Uint(BuiltinUint),
Float(BuiltinFloat),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for BuiltinType
impl Clone for BuiltinType
source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
Returns a copy of the value. Read more
1.0.0 · 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 BuiltinType
impl Debug for BuiltinType
source§impl Display for BuiltinType
impl Display for BuiltinType
source§impl From<BuiltinType> for ModuleDefId
impl From<BuiltinType> for ModuleDefId
source§fn from(it: BuiltinType) -> ModuleDefId
fn from(it: BuiltinType) -> ModuleDefId
Converts to this type from the input type.
source§impl Hash for BuiltinType
impl Hash for BuiltinType
source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
source§fn eq(&self, other: &BuiltinType) -> bool
fn eq(&self, other: &BuiltinType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BuiltinType
impl Eq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl Freeze for BuiltinType
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnwindSafe for BuiltinType
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<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.