pub struct Constant {
pub attributes: Vec<Attribute>,
pub loc: Loc,
pub signature: BaseType,
pub value: Option<MoveValue>,
}
Fields§
§attributes: Vec<Attribute>
§loc: Loc
§signature: BaseType
§value: Option<MoveValue>
Trait Implementations§
source§impl PartialEq<Constant> for Constant
impl PartialEq<Constant> for Constant
impl Eq for Constant
impl StructuralEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.