[−][src]Enum llvm_ir::types::Type
Variants
Fields of IntegerType
bits: u32
FPType(FPType)
Vector types (along with integer, FP, pointer, and X86_MMX types) are "first class types", which means they can be produced by instructions (see LLVM 11 docs on First Class Types). See LLVM 11 docs on Vector Type
Struct and Array types (but not vector types) are "aggregate types" and cannot be produced by a single instruction (see LLVM 11 docs on Aggregate Types). See LLVM 11 docs on Array Type
The StructType
variant is used for a "literal" (i.e., anonymous) structure type.
See LLVM 11 docs on Structure Type
Named structure types. Note that these may be self-referential (i.e., recursive).
See LLVM 11 docs on Structure Type
To get the actual definition of a named structure type, use module.types.named_struct_def()
.
Fields of NamedStructType
name: String
Name of the struct type
LabelType
is the type of BasicBlock
labels.
See LLVM 11 docs on Label Type
Trait Implementations
impl AsRef<Type> for TypeRef
[src]
impl Clone for Type
[src]
impl Debug for Type
[src]
impl Display for Type
[src]
impl Eq for Type
[src]
impl From<FPType> for Type
[src]
impl Hash for Type
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Type> for Type
[src]
impl StructuralEq for Type
[src]
impl StructuralPartialEq for Type
[src]
impl Typed for Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,