1 pub use crate::llvm::Value;
6 use std::hash::{Hash, Hasher};
9 impl PartialEq for Value {
10 fn eq(&self, other: &Self) -> bool {
18 fn hash<H: Hasher>(&self, hasher: &mut H) {
19 (self as *const Self).hash(hasher);
23 impl fmt::Debug for Value {
24 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
26 &llvm::build_string(|s| unsafe {
27 llvm::LLVMRustWriteValueToString(self, s);
29 .expect("non-UTF8 value description from LLVM"),