1 2 3 4 5 6 7 8 9 10 11
use super::*; pub trait ConstantExt { fn constant_type(&self, reader: &Reader) -> Type; } impl ConstantExt for Constant { fn constant_type(&self, reader: &Reader) -> Type { Type::from_metadata_type(&self.ty(), None, &[], reader) } }