pub struct StructValue<'ctx> { /* private fields */ }Implementations§
Source§impl<'ctx> StructValue<'ctx>
impl<'ctx> StructValue<'ctx>
Sourcepub fn get_name(&self) -> &CStr
pub fn get_name(&self) -> &CStr
Gets the name of a StructValue. If the value is a constant, this will
return an empty string.
pub fn get_type(self) -> StructType<'ctx>
pub fn is_null(self) -> bool
pub fn is_undef(self) -> bool
pub fn print_to_stderr(self)
pub fn as_instruction(self) -> Option<InstructionValue<'ctx>>
pub fn get_num_operands(self) -> u32
pub fn set_operand<BV: BasicValue<'ctx>>(self, index: u32, val: BV) -> bool
pub fn get_operand( self, index: u32, ) -> Option<Either<BasicValueEnum<'ctx>, BasicBlock<'ctx>>>
pub fn replace_all_uses_with(self, other: StructValue<'ctx>)
Trait Implementations§
Source§impl<'ctx> AggregateValue<'ctx> for StructValue<'ctx>
impl<'ctx> AggregateValue<'ctx> for StructValue<'ctx>
Source§fn as_aggregate_value_enum(&self) -> AggregateValueEnum<'ctx>
fn as_aggregate_value_enum(&self) -> AggregateValueEnum<'ctx>
Returns an enum containing a typed version of the
AggregateValue.Source§impl<'ctx> AnyValue<'ctx> for StructValue<'ctx>
impl<'ctx> AnyValue<'ctx> for StructValue<'ctx>
Source§fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>
fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>
Returns an enum containing a typed version of
AnyValue.Source§fn print_to_string(&self) -> LLVMString
fn print_to_string(&self) -> LLVMString
Prints a value to a
LLVMStringSource§impl AsValueRef for StructValue<'_>
impl AsValueRef for StructValue<'_>
fn as_value_ref(&self) -> LLVMValueRef
Source§impl<'ctx> BasicValue<'ctx> for StructValue<'ctx>
impl<'ctx> BasicValue<'ctx> for StructValue<'ctx>
Source§fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>
fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>
Returns an enum containing a typed version of the
BasicValue.Source§fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>
fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>
Most
BasicValues are the byproduct of an instruction
and so are convertable into an InstructionValuefn get_first_use(&self) -> Option<BasicValueUse<'_>>
Source§impl<'ctx> Clone for StructValue<'ctx>
impl<'ctx> Clone for StructValue<'ctx>
Source§fn clone(&self) -> StructValue<'ctx>
fn clone(&self) -> StructValue<'ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'ctx> Debug for StructValue<'ctx>
impl<'ctx> Debug for StructValue<'ctx>
Source§impl Display for StructValue<'_>
impl Display for StructValue<'_>
Source§impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>
impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>
Source§fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>
fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>
Source§fn from(value: StructValue<'_>) -> AnyValueEnum<'_>
fn from(value: StructValue<'_>) -> AnyValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
Source§fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>
impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>
Source§fn from(value: StructValue<'_>) -> BasicValueEnum<'_>
fn from(value: StructValue<'_>) -> BasicValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> Hash for StructValue<'ctx>
impl<'ctx> Hash for StructValue<'ctx>
Source§impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
Source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> PartialEq<StructValue<'ctx>> for AggregateValueEnum<'ctx>
impl<'ctx> PartialEq<StructValue<'ctx>> for AggregateValueEnum<'ctx>
Source§impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>
Source§impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
Source§impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>
impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>
Source§impl<'ctx> PartialEq for StructValue<'ctx>
impl<'ctx> PartialEq for StructValue<'ctx>
Source§impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
Source§impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> Copy for StructValue<'ctx>
impl<'ctx> Eq for StructValue<'ctx>
impl<'ctx> StructuralPartialEq for StructValue<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for StructValue<'ctx>
impl<'ctx> RefUnwindSafe for StructValue<'ctx>
impl<'ctx> !Send for StructValue<'ctx>
impl<'ctx> !Sync for StructValue<'ctx>
impl<'ctx> Unpin for StructValue<'ctx>
impl<'ctx> UnwindSafe for StructValue<'ctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more