Struct llvm::Arg [] [src]

pub struct Arg;

An argument that is passed to a function.

Methods

impl Arg
[src]

fn add_attribute(&self, attr: Attribute)

Add the attribute given to this argument.

fn add_attributes(&self, attrs: &[Attribute])

Add all the attributes given to this argument.

fn has_attribute(&self, attr: Attribute) -> bool

Returns true if this argument has the attribute given.

fn has_attributes(&self, attrs: &[Attribute]) -> bool

Returns true if this argument has all the attributes given.

fn remove_attribute(&self, attr: Attribute)

Remove an attribute from this argument.

Methods from Deref<Target=Value>

fn get_name(&self) -> Option<&str>

Returns the name of this value, or None if it lacks a name

fn set_name(&self, name: &str)

Sets the name of this value

fn get_type(&self) -> &Type

Returns the type of this value

Trait Implementations

impl Eq for Arg
[src]

impl PartialEq<Arg> for Arg
[src]

fn eq(&self, other: &Arg) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> PartialEq<Arg> for &'a Arg
[src]

fn eq(&self, other: &Arg) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> From<LLVMValueRef> for &'a Arg
[src]

fn from(ty: LLVMValueRef) -> &'a Arg

Performs the conversion.

impl<'a> From<LLVMValueRef> for &'a mut Arg
[src]

fn from(ty: LLVMValueRef) -> &'a mut Arg

Performs the conversion.

impl Sub<Value> for Arg
[src]

fn is(value: &Value) -> bool

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

fn from_super(value: &Value) -> Option<&Arg>

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.

impl Deref for Arg
[src]

type Target = Value

The resulting type after dereferencing

fn deref(&self) -> &Value

The method called to dereference a value