You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/values/traits.rs
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
use llvm_sys::prelude::LLVMValueRef;
2
2
3
+
use std::fmt::Debug;
4
+
3
5
use values::{ArrayValue,AggregateValueEnum,StructValue,BasicValueEnum,AnyValueEnum,IntValue,FloatValue,PointerValue,PhiValue,VectorValue,FunctionValue,InstructionValue};
4
6
5
7
// This is an ugly privacy hack so that Type can stay private to this module
@@ -11,8 +13,6 @@ pub trait AsValueRef {
11
13
12
14
macro_rules! trait_value_set {
13
15
($trait_name:ident: $($args:ident),*) => (
14
-
pubtrait $trait_name:AsValueRef{}
15
-
16
16
$(
17
17
impl $trait_name for $args {}
18
18
)*
@@ -22,6 +22,30 @@ macro_rules! trait_value_set {
22
22
);
23
23
}
24
24
25
+
/// Represents an aggregate value, built on top of other values.
26
+
pubtraitAggregateValue:BasicValue{
27
+
/// Returns an enum containing a typed version of the `AggregateValue`.
0 commit comments