Trait llvm::Sub
[−]
[src]
pub unsafe trait Sub<T>: Sized { fn is(c: &T) -> bool; fn from_super(c: &T) -> Option<&Self> { ... } fn to_super(&self) -> &T { ... } }
Indicates that this structure is a substructure of another.
Required Methods
Provided Methods
fn from_super(c: &T) -> Option<&Self>
Attempt to cast the given super value into an instance of this type.
fn to_super(&self) -> &T
Cast this value to a super value.
Implementors
impl Sub<Type> for StructType
impl Sub<Type> for FunctionType
impl Sub<Value> for Arg
impl Sub<Value> for GlobalValue
impl Sub<GlobalValue> for GlobalVariable
impl Sub<GlobalValue> for Alias
impl Sub<GlobalValue> for Function
impl Sub<Value> for Function