Enum inkwell::values::BasicMetadataValueEnum
source · pub enum BasicMetadataValueEnum<'ctx> {
ArrayValue(ArrayValue<'ctx>),
IntValue(IntValue<'ctx>),
FloatValue(FloatValue<'ctx>),
PointerValue(PointerValue<'ctx>),
StructValue(StructValue<'ctx>),
VectorValue(VectorValue<'ctx>),
MetadataValue(MetadataValue<'ctx>),
}
Variants§
ArrayValue(ArrayValue<'ctx>)
IntValue(IntValue<'ctx>)
FloatValue(FloatValue<'ctx>)
PointerValue(PointerValue<'ctx>)
StructValue(StructValue<'ctx>)
VectorValue(VectorValue<'ctx>)
MetadataValue(MetadataValue<'ctx>)
Implementations§
source§impl<'ctx> BasicMetadataValueEnum<'ctx>
impl<'ctx> BasicMetadataValueEnum<'ctx>
pub fn is_array_value(self) -> bool
pub fn is_int_value(self) -> bool
pub fn is_float_value(self) -> bool
pub fn is_pointer_value(self) -> bool
pub fn is_struct_value(self) -> bool
pub fn is_vector_value(self) -> bool
pub fn is_metadata_value(self) -> bool
pub fn into_array_value(self) -> ArrayValue<'ctx>
pub fn into_int_value(self) -> IntValue<'ctx>
pub fn into_float_value(self) -> FloatValue<'ctx>
pub fn into_pointer_value(self) -> PointerValue<'ctx>
pub fn into_struct_value(self) -> StructValue<'ctx>
pub fn into_vector_value(self) -> VectorValue<'ctx>
pub fn into_metadata_value(self) -> MetadataValue<'ctx>
Trait Implementations§
source§impl<'ctx> AnyValue<'ctx> for BasicMetadataValueEnum<'ctx>
impl<'ctx> AnyValue<'ctx> for BasicMetadataValueEnum<'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
LLVMString
source§impl AsValueRef for BasicMetadataValueEnum<'_>
impl AsValueRef for BasicMetadataValueEnum<'_>
fn as_value_ref(&self) -> LLVMValueRef
source§impl<'ctx> Clone for BasicMetadataValueEnum<'ctx>
impl<'ctx> Clone for BasicMetadataValueEnum<'ctx>
source§fn clone(&self) -> BasicMetadataValueEnum<'ctx>
fn clone(&self) -> BasicMetadataValueEnum<'ctx>
Returns a copy 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 BasicMetadataValueEnum<'ctx>
impl<'ctx> Debug for BasicMetadataValueEnum<'ctx>
source§impl Display for BasicMetadataValueEnum<'_>
impl Display for BasicMetadataValueEnum<'_>
source§impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: BasicValueEnum<'ctx>) -> Self
fn from(value: BasicValueEnum<'ctx>) -> Self
Converts to this type from the input type.
source§impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>
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<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> Hash for BasicMetadataValueEnum<'ctx>
impl<'ctx> Hash for BasicMetadataValueEnum<'ctx>
source§impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &ArrayValue<'ctx>) -> bool
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &FloatValue<'ctx>) -> bool
fn eq(&self, other: &FloatValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &MetadataValue<'ctx>) -> bool
fn eq(&self, other: &MetadataValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &PointerValue<'ctx>) -> bool
fn eq(&self, other: &PointerValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &StructValue<'ctx>) -> bool
fn eq(&self, other: &StructValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &VectorValue<'ctx>) -> bool
fn eq(&self, other: &VectorValue<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> PartialEq for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq for BasicMetadataValueEnum<'ctx>
source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>
impl<'ctx> Copy for BasicMetadataValueEnum<'ctx>
impl<'ctx> Eq for BasicMetadataValueEnum<'ctx>
impl<'ctx> StructuralEq for BasicMetadataValueEnum<'ctx>
impl<'ctx> StructuralPartialEq for BasicMetadataValueEnum<'ctx>
Auto Trait Implementations§
impl<'ctx> RefUnwindSafe for BasicMetadataValueEnum<'ctx>
impl<'ctx> !Send for BasicMetadataValueEnum<'ctx>
impl<'ctx> !Sync for BasicMetadataValueEnum<'ctx>
impl<'ctx> Unpin for BasicMetadataValueEnum<'ctx>
impl<'ctx> UnwindSafe for BasicMetadataValueEnum<'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