Enum debris_hir::hir_nodes::HirConstValue
source · pub enum HirConstValue {
Integer {
span: Span,
value: i32,
},
Bool {
span: Span,
value: bool,
},
Fixed {
span: Span,
value: i32,
},
String {
span: Span,
value: Rc<str>,
},
FormatString {
span: Span,
value: Vec<HirFormatStringMember>,
},
}
Expand description
A constant literal, already parsed
Variants§
Implementations§
source§impl HirConstValue
impl HirConstValue
Trait Implementations§
source§impl Debug for HirConstValue
impl Debug for HirConstValue
source§impl PartialEq for HirConstValue
impl PartialEq for HirConstValue
source§fn eq(&self, other: &HirConstValue) -> bool
fn eq(&self, other: &HirConstValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirConstValue
impl StructuralEq for HirConstValue
impl StructuralPartialEq for HirConstValue
Auto Trait Implementations§
impl RefUnwindSafe for HirConstValue
impl !Send for HirConstValue
impl !Sync for HirConstValue
impl Unpin for HirConstValue
impl UnwindSafe for HirConstValue
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.