[][src]Struct inkwell::support::LLVMString

pub struct LLVMString { /* fields omitted */ }

An owned LLVM String. Also known as a LLVM Message

Methods

impl LLVMString[src]

pub fn to_string(&self) -> String[src]

This is a convenience method for creating a Rust String, however; it will reallocate. LLVMString should be used as much as possible to save memory since it is allocated by LLVM. It's essentially a CString with a custom LLVM deallocator

Trait Implementations

impl Eq for LLVMString[src]

impl Drop for LLVMString[src]

impl PartialEq<LLVMString> for LLVMString[src]

impl Deref for LLVMString[src]

type Target = CStr

The resulting type after dereferencing.

impl Display for LLVMString[src]

impl Debug for LLVMString[src]

impl Error for LLVMString[src]

Auto Trait Implementations

impl !Sync for LLVMString

impl !Send for LLVMString

impl Unpin for LLVMString

impl UnwindSafe for LLVMString

impl RefUnwindSafe for LLVMString

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]