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 StructTypeimpl Sub<Type> for FunctionTypeimpl Sub<Value> for Argimpl Sub<Value> for GlobalValueimpl Sub<GlobalValue> for GlobalVariableimpl Sub<GlobalValue> for Aliasimpl Sub<GlobalValue> for Functionimpl Sub<Value> for Function