Struct inkwell::values::MetadataValue
source · pub struct MetadataValue<'ctx> { /* private fields */ }
Implementations§
source§impl<'ctx> MetadataValue<'ctx>
impl<'ctx> MetadataValue<'ctx>
sourcepub unsafe fn new(value: LLVMValueRef) -> Self
pub unsafe fn new(value: LLVMValueRef) -> Self
pub fn is_node(self) -> bool
pub fn is_string(self) -> bool
pub fn get_string_value(&self) -> Option<&CStr>
pub fn get_node_size(self) -> u32
pub fn get_node_values(self) -> Vec<BasicMetadataValueEnum<'ctx>>
pub fn print_to_stderr(self)
pub fn replace_all_uses_with(self, other: &MetadataValue<'ctx>)
Trait Implementations§
source§impl<'ctx> AnyValue<'ctx> for MetadataValue<'ctx>
impl<'ctx> AnyValue<'ctx> for MetadataValue<'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 MetadataValue<'_>
impl AsValueRef for MetadataValue<'_>
fn as_value_ref(&self) -> LLVMValueRef
source§impl<'ctx> Clone for MetadataValue<'ctx>
impl<'ctx> Clone for MetadataValue<'ctx>
source§fn clone(&self) -> MetadataValue<'ctx>
fn clone(&self) -> MetadataValue<'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 Debug for MetadataValue<'_>
impl Debug for MetadataValue<'_>
source§impl Display for MetadataValue<'_>
impl Display for MetadataValue<'_>
source§impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>
source§fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>
fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>
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> Hash for MetadataValue<'ctx>
impl<'ctx> Hash for MetadataValue<'ctx>
source§impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>
source§fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool
fn eq(&self, other: &AnyValueEnum<'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<MetadataValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> PartialEq<MetadataValue<'ctx>> for AnyValueEnum<'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<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 for MetadataValue<'ctx>
impl<'ctx> PartialEq for MetadataValue<'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> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>
impl<'ctx> Copy for MetadataValue<'ctx>
impl<'ctx> Eq for MetadataValue<'ctx>
impl<'ctx> StructuralPartialEq for MetadataValue<'ctx>
Auto Trait Implementations§
impl<'ctx> RefUnwindSafe for MetadataValue<'ctx>
impl<'ctx> !Send for MetadataValue<'ctx>
impl<'ctx> !Sync for MetadataValue<'ctx>
impl<'ctx> Unpin for MetadataValue<'ctx>
impl<'ctx> UnwindSafe for MetadataValue<'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