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

fn is(c: &T) -> bool

Check if the given super value is an instance of this type.

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