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§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
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§impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>
Source§impl<'ctx> PartialEq for MetadataValue<'ctx>
impl<'ctx> PartialEq for MetadataValue<'ctx>
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> Freeze for MetadataValue<'ctx>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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