diff --git a/backtrace/enum.BytesOrWideString.html b/backtrace/enum.BytesOrWideString.html index 5f92bb8bf3..cdd61d7771 100644 --- a/backtrace/enum.BytesOrWideString.html +++ b/backtrace/enum.BytesOrWideString.html @@ -16,7 +16,7 @@
Required featuresRequired features

This function requires the std feature of the backtrace crate to be enabled, and the std feature is enabled by default.

-

Trait Implementations§

source§

impl<'a> Debug for BytesOrWideString<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Display for BytesOrWideString<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for BytesOrWideString<'a>

§

impl<'a> Send for BytesOrWideString<'a>

§

impl<'a> Sync for BytesOrWideString<'a>

§

impl<'a> Unpin for BytesOrWideString<'a>

§

impl<'a> UnwindSafe for BytesOrWideString<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl<'a> Debug for BytesOrWideString<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Display for BytesOrWideString<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for BytesOrWideString<'a>

§

impl<'a> Send for BytesOrWideString<'a>

§

impl<'a> Sync for BytesOrWideString<'a>

§

impl<'a> Unpin for BytesOrWideString<'a>

§

impl<'a> UnwindSafe for BytesOrWideString<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/clap/all.html b/clap/all.html index 99bd6d68b0..6b8cbcc63d 100644 --- a/clap/all.html +++ b/clap/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate
\ No newline at end of file diff --git a/clap/builder/enum.ArgAction.html b/clap/builder/enum.ArgAction.html index 927f8347cc..c696788ac1 100644 --- a/clap/builder/enum.ArgAction.html +++ b/clap/builder/enum.ArgAction.html @@ -1,4 +1,4 @@ -ArgAction in clap::builder - Rust +ArgAction in clap::builder - Rust

Enum clap::builder::ArgAction

source ·
#[non_exhaustive]
pub enum ArgAction { Set, Append, @@ -238,7 +238,7 @@

Examples

Implementations§

source§

impl ArgAction

source

pub fn takes_values(&self) -> bool

Returns whether this action accepts values on the command-line

default_values and [env][super::Arg::env] may still be processed.

-

Trait Implementations§

source§

impl Clone for ArgAction

source§

fn clone(&self) -> ArgAction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ArgAction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl IntoResettable<ArgAction> for ArgAction

source§

fn into_resettable(self) -> Resettable<ArgAction>

Convert to the intended resettable type
source§

impl IntoResettable<ArgAction> for Option<ArgAction>

source§

fn into_resettable(self) -> Resettable<ArgAction>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Clone for ArgAction

source§

fn clone(&self) -> ArgAction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ArgAction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl IntoResettable<ArgAction> for ArgAction

source§

fn into_resettable(self) -> Resettable<ArgAction>

Convert to the intended resettable type
source§

impl IntoResettable<ArgAction> for Option<ArgAction>

source§

fn into_resettable(self) -> Resettable<ArgAction>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/clap/builder/enum.ArgPredicate.html b/clap/builder/enum.ArgPredicate.html index 90cf45b259..f4e96389d1 100644 --- a/clap/builder/enum.ArgPredicate.html +++ b/clap/builder/enum.ArgPredicate.html @@ -1,4 +1,4 @@ -ArgPredicate in clap::builder - Rust +ArgPredicate in clap::builder - Rust
pub enum ArgPredicate {
     IsPresent,
     Equals(OsStr),
diff --git a/clap/builder/enum.Resettable.html b/clap/builder/enum.Resettable.html
index 96849b7c83..2404ecf7cc 100644
--- a/clap/builder/enum.Resettable.html
+++ b/clap/builder/enum.Resettable.html
@@ -1,4 +1,4 @@
-Resettable in clap::builder - Rust
+Resettable in clap::builder - Rust
     

Enum clap::builder::Resettable

source ·
pub enum Resettable<T> {
     Value(T),
     Reset,
diff --git a/clap/builder/enum.ValueHint.html b/clap/builder/enum.ValueHint.html
index cb9462c5fd..5c7bdfc40b 100644
--- a/clap/builder/enum.ValueHint.html
+++ b/clap/builder/enum.ValueHint.html
@@ -1,4 +1,4 @@
-ValueHint in clap::builder - Rust
+ValueHint in clap::builder - Rust
     

Enum clap::builder::ValueHint

source ·
#[non_exhaustive]
pub enum ValueHint {
Show 13 variants Unknown, Other, diff --git a/clap/builder/index.html b/clap/builder/index.html index 9c60ccfe0f..af5cf6faf2 100644 --- a/clap/builder/index.html +++ b/clap/builder/index.html @@ -1,4 +1,4 @@ -clap::builder - Rust +clap::builder - Rust

Module clap::builder

source ·
Expand description

Define Command line arguments

Modules

Structs

Enums

  • Behavior of arguments when they are encountered while parsing
  • Operations to perform on argument values
  • Clearable builder value
  • Provide shell with hint on how to complete an argument.

Traits

\ No newline at end of file diff --git a/clap/builder/struct.Arg.html b/clap/builder/struct.Arg.html index 1fad3c8c8d..c4d11b85bc 100644 --- a/clap/builder/struct.Arg.html +++ b/clap/builder/struct.Arg.html @@ -1,4 +1,4 @@ -Arg in clap::builder - Rust +Arg in clap::builder - Rust

Struct clap::builder::Arg

source ·
pub struct Arg { /* private fields */ }
Expand description

The abstract representation of a command line argument. Used to set all the options and relationships that define a valid argument for the program.

There are two methods for constructing Args, using the builder pattern and setting options diff --git a/clap/builder/struct.ArgGroup.html b/clap/builder/struct.ArgGroup.html index 61a73ccf9c..c3444bc458 100644 --- a/clap/builder/struct.ArgGroup.html +++ b/clap/builder/struct.ArgGroup.html @@ -1,4 +1,4 @@ -ArgGroup in clap::builder - Rust

+ArgGroup in clap::builder - Rust

Struct clap::builder::ArgGroup

source ·
pub struct ArgGroup { /* private fields */ }
Expand description

Family of related arguments.

By placing arguments in a logical group, you can create easier requirement and exclusion rules instead of having to list each argument individually, or when you want a rule diff --git a/clap/builder/struct.BoolValueParser.html b/clap/builder/struct.BoolValueParser.html index 975722ed68..76128a3918 100644 --- a/clap/builder/struct.BoolValueParser.html +++ b/clap/builder/struct.BoolValueParser.html @@ -1,4 +1,4 @@ -BoolValueParser in clap::builder - Rust

+BoolValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct BoolValueParser {}
Expand description

Implementation for ValueParser::bool

Useful for composing new TypedValueParsers

Implementations§

source§

impl BoolValueParser

source

pub fn new() -> BoolValueParser

Implementation for ValueParser::bool

diff --git a/clap/builder/struct.BoolishValueParser.html b/clap/builder/struct.BoolishValueParser.html index 59b016e64a..4a6634dcc8 100644 --- a/clap/builder/struct.BoolishValueParser.html +++ b/clap/builder/struct.BoolishValueParser.html @@ -1,4 +1,4 @@ -BoolishValueParser in clap::builder - Rust +BoolishValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct BoolishValueParser {}
Expand description

Parse bool-like string values, everything else is true

See also:

-

Trait Implementations§

source§

impl AsRef<OsStr> for OsStr

source§

fn as_ref(&self) -> &OsStr

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Path> for OsStr

source§

fn as_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<OsStr> for OsStr

source§

fn borrow(&self) -> &OsStr

Immutably borrows from an owned value. Read more
source§

impl Clone for OsStr

source§

fn clone(&self) -> OsStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OsStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for OsStr

source§

fn default() -> OsStr

Returns the “default value” for a type. Read more
source§

impl Deref for OsStr

§

type Target = OsStr

The resulting type after dereferencing.
source§

fn deref(&self) -> &OsStr

Dereferences the value.
source§

impl From<&&'static OsStr> for OsStr

source§

fn from(name: &&'static OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&&'static str> for OsStr

source§

fn from(name: &&'static str) -> OsStr

Converts to this type from the input type.
source§

impl From<&OsStr> for OsStr

source§

fn from(id: &OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&'static OsStr> for OsStr

source§

fn from(name: &'static OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&Str> for OsStr

source§

fn from(id: &Str) -> OsStr

Converts to this type from the input type.
source§

impl From<&'static str> for OsStr

source§

fn from(name: &'static str) -> OsStr

Converts to this type from the input type.
source§

impl From<Str> for OsStr

source§

fn from(id: Str) -> OsStr

Converts to this type from the input type.
source§

impl Hash for OsStr

source§

fn hash<__H>(&self, state: &mut __H)
where +

Trait Implementations§

source§

impl AsRef<OsStr> for OsStr

source§

fn as_ref(&self) -> &OsStr

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Path> for OsStr

source§

fn as_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<OsStr> for OsStr

source§

fn borrow(&self) -> &OsStr

Immutably borrows from an owned value. Read more
source§

impl Clone for OsStr

source§

fn clone(&self) -> OsStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OsStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for OsStr

source§

fn default() -> OsStr

Returns the “default value” for a type. Read more
source§

impl Deref for OsStr

§

type Target = OsStr

The resulting type after dereferencing.
source§

fn deref(&self) -> &OsStr

Dereferences the value.
source§

impl From<&&'static OsStr> for OsStr

source§

fn from(name: &&'static OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&&'static str> for OsStr

source§

fn from(name: &&'static str) -> OsStr

Converts to this type from the input type.
source§

impl From<&'static OsStr> for OsStr

source§

fn from(name: &'static OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&OsStr> for OsStr

source§

fn from(id: &OsStr) -> OsStr

Converts to this type from the input type.
source§

impl From<&Str> for OsStr

source§

fn from(id: &Str) -> OsStr

Converts to this type from the input type.
source§

impl From<&'static str> for OsStr

source§

fn from(name: &'static str) -> OsStr

Converts to this type from the input type.
source§

impl From<Str> for OsStr

source§

fn from(id: Str) -> OsStr

Converts to this type from the input type.
source§

impl Hash for OsStr

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoResettable<OsStr> for Option<&'static str>

source§

fn into_resettable(self) -> Resettable<OsStr>

Convert to the intended resettable type
source§

impl Ord for OsStr

source§

fn cmp(&self, other: &OsStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<&OsStr> for OsStr

source§

fn eq(&self, other: &&OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
source§

impl PartialEq<&OsStr> for OsStr

source§

fn eq(&self, other: &&OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&str> for OsStr

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsString> for OsStr

source§

fn eq(&self, other: &OsString) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for OsStr

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for OsStr

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsString> for OsStr

source§

fn eq(&self, other: &OsString) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for OsStr

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for OsStr

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for OsStr

source§

fn partial_cmp(&self, other: &OsStr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for OsStr

source§

impl StructuralEq for OsStr

source§

impl StructuralPartialEq for OsStr

Auto Trait Implementations§

§

impl RefUnwindSafe for OsStr

§

impl Send for OsStr

§

impl Sync for OsStr

§

impl Unpin for OsStr

§

impl UnwindSafe for OsStr

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/clap/builder/struct.OsStringValueParser.html b/clap/builder/struct.OsStringValueParser.html index 20a2935049..d4e25a05d0 100644 --- a/clap/builder/struct.OsStringValueParser.html +++ b/clap/builder/struct.OsStringValueParser.html @@ -1,4 +1,4 @@ -OsStringValueParser in clap::builder - Rust +OsStringValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct OsStringValueParser {}
Expand description

Implementation for ValueParser::os_string

Useful for composing new TypedValueParsers

Implementations§

source§

impl OsStringValueParser

source

pub fn new() -> OsStringValueParser

Implementation for ValueParser::os_string

diff --git a/clap/builder/struct.PathBufValueParser.html b/clap/builder/struct.PathBufValueParser.html index 70ff87fd41..9ff3734c2e 100644 --- a/clap/builder/struct.PathBufValueParser.html +++ b/clap/builder/struct.PathBufValueParser.html @@ -1,4 +1,4 @@ -PathBufValueParser in clap::builder - Rust +PathBufValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct PathBufValueParser {}
Expand description

Implementation for ValueParser::path_buf

Useful for composing new TypedValueParsers

Implementations§

source§

impl PathBufValueParser

source

pub fn new() -> PathBufValueParser

Implementation for ValueParser::path_buf

diff --git a/clap/builder/struct.PossibleValue.html b/clap/builder/struct.PossibleValue.html index 006bbed184..a40d1933a5 100644 --- a/clap/builder/struct.PossibleValue.html +++ b/clap/builder/struct.PossibleValue.html @@ -1,4 +1,4 @@ -PossibleValue in clap::builder - Rust +PossibleValue in clap::builder - Rust

Struct clap::builder::PossibleValue

source ·
pub struct PossibleValue { /* private fields */ }
Expand description

A possible value of an argument.

This is used for specifying possible values of Args.

See also PossibleValuesParser

diff --git a/clap/builder/struct.PossibleValuesParser.html b/clap/builder/struct.PossibleValuesParser.html index cf46119e48..06fb1f17a7 100644 --- a/clap/builder/struct.PossibleValuesParser.html +++ b/clap/builder/struct.PossibleValuesParser.html @@ -1,4 +1,4 @@ -PossibleValuesParser in clap::builder - Rust +PossibleValuesParser in clap::builder - Rust
pub struct PossibleValuesParser(/* private fields */);
Expand description

Verify the value is from an enumerated set of PossibleValue.

See also:

Restrict a value to a certain interval. Read more
source§

impl PartialEq<&OsStr> for Str

source§

fn eq(&self, other: &&OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Id> for Str

source§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for Str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&str> for Str

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Id> for Str

source§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for Str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for Id

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for Str

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for Str

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for Str

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for Str

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Str

source§

fn partial_cmp(&self, other: &Str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for Str

source§

impl StructuralEq for Str

source§

impl StructuralPartialEq for Str

Auto Trait Implementations§

§

impl RefUnwindSafe for Str

§

impl Send for Str

§

impl Sync for Str

§

impl Unpin for Str

§

impl UnwindSafe for Str

Blanket Implementations§

source§

impl<T> Any for T
where @@ -1242,10 +1242,10 @@
Examples

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<I> IntoResettable<Id> for I
where - I: Into<Id>,

source§

fn into_resettable(self) -> Resettable<Id>

Convert to the intended resettable type
source§

impl<I> IntoResettable<OsStr> for I
where - I: Into<OsStr>,

source§

fn into_resettable(self) -> Resettable<OsStr>

Convert to the intended resettable type
source§

impl<I> IntoResettable<Str> for I
where + I: Into<Id>,

source§

fn into_resettable(self) -> Resettable<Id>

Convert to the intended resettable type
source§

impl<I> IntoResettable<OsStr> for I
where + I: Into<OsStr>,

source§

fn into_resettable(self) -> Resettable<OsStr>

Convert to the intended resettable type
source§

impl<I> IntoResettable<Str> for I
where I: Into<Str>,

source§

fn into_resettable(self) -> Resettable<Str>

Convert to the intended resettable type
source§

impl<I> IntoResettable<String> for I
where - I: Into<String>,

source§

fn into_resettable(self) -> Resettable<String>

Convert to the intended resettable type
source§

impl<T> ToOwned for T
where + I: Into<String>,

source§

fn into_resettable(self) -> Resettable<String>

Convert to the intended resettable type
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where diff --git a/clap/builder/struct.StringValueParser.html b/clap/builder/struct.StringValueParser.html index d7ec82384b..170375bff0 100644 --- a/clap/builder/struct.StringValueParser.html +++ b/clap/builder/struct.StringValueParser.html @@ -1,4 +1,4 @@ -StringValueParser in clap::builder - Rust +StringValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct StringValueParser {}
Expand description

Implementation for ValueParser::string

Useful for composing new TypedValueParsers

Implementations§

source§

impl StringValueParser

source

pub fn new() -> StringValueParser

Implementations§

source§

impl StyledStr

source

pub const fn new() -> StyledStr

Create an empty buffer

source

pub fn ansi(&self) -> impl Display

Display using ANSI Escape Code styling

-

Trait Implementations§

source§

impl Clone for StyledStr

source§

fn clone(&self) -> StyledStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyledStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for &StyledStr

source§

fn default() -> &StyledStr

Returns the “default value” for a type. Read more
source§

impl Default for StyledStr

source§

fn default() -> StyledStr

Returns the “default value” for a type. Read more
source§

impl Display for StyledStr

Color-unaware printing. Never uses coloring.

-
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&&'static str> for StyledStr

source§

fn from(name: &&'static str) -> StyledStr

Converts to this type from the input type.
source§

impl From<&String> for StyledStr

source§

fn from(name: &String) -> StyledStr

Converts to this type from the input type.
source§

impl From<&'static str> for StyledStr

source§

fn from(name: &'static str) -> StyledStr

Converts to this type from the input type.
source§

impl From<String> for StyledStr

source§

fn from(name: String) -> StyledStr

Converts to this type from the input type.
source§

impl IntoResettable<StyledStr> for Option<&'static str>

source§

fn into_resettable(self) -> Resettable<StyledStr>

Convert to the intended resettable type
source§

impl Ord for StyledStr

source§

fn cmp(&self, other: &StyledStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +

Trait Implementations§

source§

impl Clone for StyledStr

source§

fn clone(&self) -> StyledStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyledStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for &StyledStr

source§

fn default() -> &StyledStr

Returns the “default value” for a type. Read more
source§

impl Default for StyledStr

source§

fn default() -> StyledStr

Returns the “default value” for a type. Read more
source§

impl Display for StyledStr

Color-unaware printing. Never uses coloring.

+
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&&'static str> for StyledStr

source§

fn from(name: &&'static str) -> StyledStr

Converts to this type from the input type.
source§

impl From<&String> for StyledStr

source§

fn from(name: &String) -> StyledStr

Converts to this type from the input type.
source§

impl From<&'static str> for StyledStr

source§

fn from(name: &'static str) -> StyledStr

Converts to this type from the input type.
source§

impl From<String> for StyledStr

source§

fn from(name: String) -> StyledStr

Converts to this type from the input type.
source§

impl IntoResettable<StyledStr> for Option<&'static str>

source§

fn into_resettable(self) -> Resettable<StyledStr>

Convert to the intended resettable type
source§

impl Ord for StyledStr

source§

fn cmp(&self, other: &StyledStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for StyledStr

source§

fn eq(&self, other: &StyledStr) -> bool

This method tests for self and other values to be equal, and is used diff --git a/clap/builder/struct.Styles.html b/clap/builder/struct.Styles.html index 2e703c66a8..a177701a25 100644 --- a/clap/builder/struct.Styles.html +++ b/clap/builder/struct.Styles.html @@ -1,4 +1,4 @@ -Styles in clap::builder - Rust +Styles in clap::builder - Rust

Struct clap::builder::Styles

source ·
pub struct Styles { /* private fields */ }
Expand description

Terminal styling definitions

See also Command::styles.

Example

diff --git a/clap/builder/struct.TryMapValueParser.html b/clap/builder/struct.TryMapValueParser.html index 84ff068d23..5003e3d1de 100644 --- a/clap/builder/struct.TryMapValueParser.html +++ b/clap/builder/struct.TryMapValueParser.html @@ -1,4 +1,4 @@ -TryMapValueParser in clap::builder - Rust +TryMapValueParser in clap::builder - Rust
pub struct TryMapValueParser<P, F> { /* private fields */ }
Expand description

Adapt a TypedValueParser from one value to another

See TypedValueParser::try_map

Trait Implementations§

source§

impl<P, F> Clone for TryMapValueParser<P, F>
where diff --git a/clap/builder/struct.UnknownArgumentValueParser.html b/clap/builder/struct.UnknownArgumentValueParser.html index c715657010..cfe5b188a9 100644 --- a/clap/builder/struct.UnknownArgumentValueParser.html +++ b/clap/builder/struct.UnknownArgumentValueParser.html @@ -1,4 +1,4 @@ -UnknownArgumentValueParser in clap::builder - Rust +UnknownArgumentValueParser in clap::builder - Rust
pub struct UnknownArgumentValueParser { /* private fields */ }
Expand description

When encountered, report ErrorKind::UnknownArgument

Useful to help users migrate, either from old versions or similar tools.

Examples

diff --git a/clap/builder/struct.ValueParser.html b/clap/builder/struct.ValueParser.html index 65ed17fdd0..7ed7014af3 100644 --- a/clap/builder/struct.ValueParser.html +++ b/clap/builder/struct.ValueParser.html @@ -1,4 +1,4 @@ -ValueParser in clap::builder - Rust +ValueParser in clap::builder - Rust

Struct clap::builder::ValueParser

source ·
pub struct ValueParser(/* private fields */);
Expand description

Parse/validate argument values

Specified with Arg::value_parser.

ValueParser defines how to convert a raw argument value into a validated and typed value for @@ -175,7 +175,7 @@

Examples

let color: &String = m.get_one("color") .expect("default"); assert_eq!(color, "never");
-
source§

fn from(values: [P; C]) -> ValueParser

Converts to this type from the input type.
source§

impl<P> From<P> for ValueParser
where +
source§

fn from(values: [P; C]) -> ValueParser

Converts to this type from the input type.

source§

impl<P> From<P> for ValueParser
where P: TypedValueParser + Send + Sync + 'static,

Convert a TypedValueParser to ValueParser

Example

let mut cmd = clap::Command::new("raw")
@@ -194,10 +194,10 @@ 

Example

let hostname: &String = m.get_one("hostname") .expect("required"); assert_eq!(hostname, "rust-lang.org");
-
source§

fn from(p: P) -> ValueParser

Converts to this type from the input type.
source§

impl From<Range<i64>> for ValueParser

Create an i64 ValueParser from a N..M range

+
source§

fn from(p: P) -> ValueParser

Converts to this type from the input type.
source§

impl From<Range<i64>> for ValueParser

Create an i64 ValueParser from a N..M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -211,10 +211,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: Range<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeFrom<i64>> for ValueParser

Create an i64 ValueParser from a N.. range

+
source§

fn from(value: Range<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeFrom<i64>> for ValueParser

Create an i64 ValueParser from a N.. range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -228,10 +228,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeFrom<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueParser

Create an i64 ValueParser from a .. range

+
source§

fn from(value: RangeFrom<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueParser

Create an i64 ValueParser from a .. range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -245,10 +245,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeFull) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeInclusive<i64>> for ValueParser

Create an i64 ValueParser from a N..=M range

+
source§

fn from(value: RangeFull) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeInclusive<i64>> for ValueParser

Create an i64 ValueParser from a N..=M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -262,10 +262,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeInclusive<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeTo<i64>> for ValueParser

Create an i64 ValueParser from a ..M range

+
source§

fn from(value: RangeInclusive<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeTo<i64>> for ValueParser

Create an i64 ValueParser from a ..M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -279,10 +279,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 80);
-
source§

fn from(value: RangeTo<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeToInclusive<i64>> for ValueParser

Create an i64 ValueParser from a ..=M range

+
source§

fn from(value: RangeTo<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl From<RangeToInclusive<i64>> for ValueParser

Create an i64 ValueParser from a ..=M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -296,11 +296,11 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 80);
-
source§

fn from(value: RangeToInclusive<i64>) -> ValueParser

Converts to this type from the input type.
source§

impl<P> From<Vec<P>> for ValueParser
where +
source§

fn from(value: RangeToInclusive<i64>) -> ValueParser

Converts to this type from the input type.

source§

impl<P> From<Vec<P>> for ValueParser
where P: Into<PossibleValue>,

Create a ValueParser with PossibleValuesParser

See PossibleValuesParser for more flexibility in creating the PossibleValues.

-

Examples

+

Examples

let possible = vec!["always", "auto", "never"];
 let mut cmd = clap::Command::new("raw")
     .arg(
@@ -317,7 +317,7 @@ 

Examples

let color: &String = m.get_one("color") .expect("default"); assert_eq!(color, "never");
-
source§

fn from(values: Vec<P>) -> ValueParser

Converts to this type from the input type.
source§

impl IntoResettable<ValueParser> for Option<ValueParser>

source§

fn into_resettable(self) -> Resettable<ValueParser>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +
source§

fn from(values: Vec<P>) -> ValueParser

Converts to this type from the input type.

source§

impl IntoResettable<ValueParser> for Option<ValueParser>

source§

fn into_resettable(self) -> Resettable<ValueParser>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/clap/builder/struct.ValueRange.html b/clap/builder/struct.ValueRange.html index 92d7764a54..7209d8a219 100644 --- a/clap/builder/struct.ValueRange.html +++ b/clap/builder/struct.ValueRange.html @@ -1,4 +1,4 @@ -ValueRange in clap::builder - Rust +ValueRange in clap::builder - Rust

Struct clap::builder::ValueRange

source ·
pub struct ValueRange { /* private fields */ }
Expand description

Values per occurrence for an argument

Implementations§

source§

impl ValueRange

source

pub const EMPTY: ValueRange = _

Nor argument values, or a flag

source

pub const SINGLE: ValueRange = _

A single argument value, the most common case for options

@@ -24,7 +24,7 @@
Examples
let range = ValueRange::new(0); assert!(!range.takes_values());
-

Trait Implementations§

source§

impl Clone for ValueRange

source§

fn clone(&self) -> ValueRange

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ValueRange

source§

fn default() -> ValueRange

Returns the “default value” for a type. Read more
source§

impl Display for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Range<usize>> for ValueRange

source§

fn from(range: Range<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeFrom<usize>> for ValueRange

source§

fn from(range: RangeFrom<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueRange

source§

fn from(_: RangeFull) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeInclusive<usize>> for ValueRange

source§

fn from(range: RangeInclusive<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeTo<usize>> for ValueRange

source§

fn from(range: RangeTo<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeToInclusive<usize>> for ValueRange

source§

fn from(range: RangeToInclusive<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<usize> for ValueRange

source§

fn from(fixed: usize) -> ValueRange

Converts to this type from the input type.
source§

impl Hash for ValueRange

source§

fn hash<__H>(&self, state: &mut __H)
where +

Trait Implementations§

source§

impl Clone for ValueRange

source§

fn clone(&self) -> ValueRange

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ValueRange

source§

fn default() -> ValueRange

Returns the “default value” for a type. Read more
source§

impl Display for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Range<usize>> for ValueRange

source§

fn from(range: Range<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeFrom<usize>> for ValueRange

source§

fn from(range: RangeFrom<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueRange

source§

fn from(_: RangeFull) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeInclusive<usize>> for ValueRange

source§

fn from(range: RangeInclusive<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeTo<usize>> for ValueRange

source§

fn from(range: RangeTo<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<RangeToInclusive<usize>> for ValueRange

source§

fn from(range: RangeToInclusive<usize>) -> ValueRange

Converts to this type from the input type.
source§

impl From<usize> for ValueRange

source§

fn from(fixed: usize) -> ValueRange

Converts to this type from the input type.
source§

impl Hash for ValueRange

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ValueRange

source§

fn eq(&self, other: &ValueRange) -> bool

This method tests for self and other values to be equal, and is used diff --git a/clap/builder/styling/enum.AnsiColor.html b/clap/builder/styling/enum.AnsiColor.html index 2c185f0312..500580a702 100644 --- a/clap/builder/styling/enum.AnsiColor.html +++ b/clap/builder/styling/enum.AnsiColor.html @@ -1,4 +1,4 @@ -AnsiColor in clap::builder::styling - Rust +AnsiColor in clap::builder::styling - Rust
#[repr(u8)]
pub enum AnsiColor {
Show 16 variants Black = 0, Red = 1, diff --git a/clap/builder/styling/enum.Color.html b/clap/builder/styling/enum.Color.html index 30149cd9f1..2ca3658470 100644 --- a/clap/builder/styling/enum.Color.html +++ b/clap/builder/styling/enum.Color.html @@ -1,4 +1,4 @@ -Color in clap::builder::styling - Rust +Color in clap::builder::styling - Rust

Enum clap::builder::styling::Color

source ·
pub enum Color {
     Ansi(AnsiColor),
     Ansi256(Ansi256Color),
diff --git a/clap/builder/styling/index.html b/clap/builder/styling/index.html
index 9e726655da..676cb87827 100644
--- a/clap/builder/styling/index.html
+++ b/clap/builder/styling/index.html
@@ -1,3 +1,3 @@
-clap::builder::styling - Rust
+clap::builder::styling - Rust
     

Module clap::builder::styling

source ·
Expand description

Terminal Styles for help and error output

Structs

Enums

  • Available 4-bit ANSI color palette codes
  • Any ANSI color code scheme
\ No newline at end of file diff --git a/clap/builder/styling/struct.Ansi256Color.html b/clap/builder/styling/struct.Ansi256Color.html index 2204d88f94..19df5b538c 100644 --- a/clap/builder/styling/struct.Ansi256Color.html +++ b/clap/builder/styling/struct.Ansi256Color.html @@ -1,4 +1,4 @@ -Ansi256Color in clap::builder::styling - Rust +Ansi256Color in clap::builder::styling - Rust
#[repr(transparent)]
pub struct Ansi256Color(pub u8);
Expand description

256 (8-bit) color support

Restrict a value to a certain interval. Read more
source§

impl PartialEq<&OsStr> for OsStr

source§

fn eq(&self, other: &&OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&str> for OsStr

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for &str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for OsString

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for String

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for OsString

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for String

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsString> for OsStr

source§

fn eq(&self, other: &OsString) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for OsStr

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for OsStr

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsString> for OsStr

source§

fn eq(&self, other: &OsString) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for OsStr

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for OsStr

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for OsStr

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for OsStr

source§

fn partial_cmp(&self, other: &OsStr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for OsStr

source§

impl StructuralEq for OsStr

source§

impl StructuralPartialEq for OsStr

Auto Trait Implementations§

§

impl RefUnwindSafe for OsStr

§

impl Send for OsStr

§

impl Sync for OsStr

§

impl Unpin for OsStr

§

impl UnwindSafe for OsStr

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/clap_builder/builder/struct.OsStringValueParser.html b/clap_builder/builder/struct.OsStringValueParser.html index beb7171193..b8b29909de 100644 --- a/clap_builder/builder/struct.OsStringValueParser.html +++ b/clap_builder/builder/struct.OsStringValueParser.html @@ -1,4 +1,4 @@ -OsStringValueParser in clap_builder::builder - Rust +OsStringValueParser in clap_builder::builder - Rust
#[non_exhaustive]
pub struct OsStringValueParser {}
Expand description

Implementation for ValueParser::os_string

Useful for composing new TypedValueParsers

Implementations§

source§

impl OsStringValueParser

source

pub fn new() -> Self

Implementation for ValueParser::os_string

diff --git a/clap_builder/builder/struct.PathBufValueParser.html b/clap_builder/builder/struct.PathBufValueParser.html index f7b48783fa..9885635407 100644 --- a/clap_builder/builder/struct.PathBufValueParser.html +++ b/clap_builder/builder/struct.PathBufValueParser.html @@ -1,4 +1,4 @@ -PathBufValueParser in clap_builder::builder - Rust +PathBufValueParser in clap_builder::builder - Rust
#[non_exhaustive]
pub struct PathBufValueParser {}
Expand description

Implementation for ValueParser::path_buf

Useful for composing new TypedValueParsers

Implementations§

source§

impl PathBufValueParser

source

pub fn new() -> Self

Implementation for ValueParser::path_buf

diff --git a/clap_builder/builder/struct.PossibleValue.html b/clap_builder/builder/struct.PossibleValue.html index 5b9c7d12f4..c6eea09c89 100644 --- a/clap_builder/builder/struct.PossibleValue.html +++ b/clap_builder/builder/struct.PossibleValue.html @@ -1,4 +1,4 @@ -PossibleValue in clap_builder::builder - Rust +PossibleValue in clap_builder::builder - Rust
pub struct PossibleValue { /* private fields */ }
Expand description

A possible value of an argument.

This is used for specifying possible values of Args.

See also PossibleValuesParser

diff --git a/clap_builder/builder/struct.PossibleValuesParser.html b/clap_builder/builder/struct.PossibleValuesParser.html index 06bcb38edd..c4b497822d 100644 --- a/clap_builder/builder/struct.PossibleValuesParser.html +++ b/clap_builder/builder/struct.PossibleValuesParser.html @@ -1,4 +1,4 @@ -PossibleValuesParser in clap_builder::builder - Rust +PossibleValuesParser in clap_builder::builder - Rust
pub struct PossibleValuesParser(/* private fields */);
Expand description

Verify the value is from an enumerated set of PossibleValue.

See also:

Restrict a value to a certain interval. Read more
source§

impl PartialEq<&OsStr> for Str

source§

fn eq(&self, other: &&OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&str> for Str

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&str> for Str

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Id> for Str

source§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for Str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Id> for Str

source§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for Id

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OsStr> for Str

source§

fn eq(&self, other: &OsStr) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for String

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for &str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for Str

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for Str

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for Id

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for OsStr

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for String

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Str> for str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for Str

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for Str

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Str

source§

fn eq(&self, other: &Str) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Str

source§

fn partial_cmp(&self, other: &Str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for Str

source§

impl StructuralEq for Str

source§

impl StructuralPartialEq for Str

Auto Trait Implementations§

§

impl RefUnwindSafe for Str

§

impl Send for Str

§

impl Sync for Str

§

impl Unpin for Str

§

impl UnwindSafe for Str

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/clap_builder/builder/struct.StringValueParser.html b/clap_builder/builder/struct.StringValueParser.html index c7d2903268..1348138961 100644 --- a/clap_builder/builder/struct.StringValueParser.html +++ b/clap_builder/builder/struct.StringValueParser.html @@ -1,4 +1,4 @@ -StringValueParser in clap_builder::builder - Rust +StringValueParser in clap_builder::builder - Rust
#[non_exhaustive]
pub struct StringValueParser {}
Expand description

Implementation for ValueParser::string

Useful for composing new TypedValueParsers

Implementations§

source§

impl StringValueParser

source

pub fn new() -> Self

Implementation for ValueParser::string

diff --git a/clap_builder/builder/struct.StyledStr.html b/clap_builder/builder/struct.StyledStr.html index f9a84e4192..9d3771c828 100644 --- a/clap_builder/builder/struct.StyledStr.html +++ b/clap_builder/builder/struct.StyledStr.html @@ -1,4 +1,4 @@ -StyledStr in clap_builder::builder - Rust +StyledStr in clap_builder::builder - Rust
pub struct StyledStr(/* private fields */);
Expand description

Terminal-styling container

Styling may be encoded as ANSI Escape Code

Examples

@@ -14,8 +14,8 @@

Examples

// ...

Implementations§

source§

impl StyledStr

source

pub const fn new() -> Self

Create an empty buffer

source

pub fn ansi(&self) -> impl Display + '_

Display using ANSI Escape Code styling

-

Trait Implementations§

source§

impl Clone for StyledStr

source§

fn clone(&self) -> StyledStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyledStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for &StyledStr

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Default for StyledStr

source§

fn default() -> StyledStr

Returns the “default value” for a type. Read more
source§

impl Display for StyledStr

Color-unaware printing. Never uses coloring.

-
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&&'static str> for StyledStr

source§

fn from(name: &&'static str) -> Self

Converts to this type from the input type.
source§

impl From<&String> for StyledStr

source§

fn from(name: &String) -> Self

Converts to this type from the input type.
source§

impl From<&'static str> for StyledStr

source§

fn from(name: &'static str) -> Self

Converts to this type from the input type.
source§

impl From<String> for StyledStr

source§

fn from(name: String) -> Self

Converts to this type from the input type.
source§

impl IntoResettable<StyledStr> for Option<&'static str>

source§

fn into_resettable(self) -> Resettable<StyledStr>

Convert to the intended resettable type
source§

impl Ord for StyledStr

source§

fn cmp(&self, other: &StyledStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +

Trait Implementations§

source§

impl Clone for StyledStr

source§

fn clone(&self) -> StyledStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyledStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for &StyledStr

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Default for StyledStr

source§

fn default() -> StyledStr

Returns the “default value” for a type. Read more
source§

impl Display for StyledStr

Color-unaware printing. Never uses coloring.

+
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&&'static str> for StyledStr

source§

fn from(name: &&'static str) -> Self

Converts to this type from the input type.
source§

impl From<&String> for StyledStr

source§

fn from(name: &String) -> Self

Converts to this type from the input type.
source§

impl From<&'static str> for StyledStr

source§

fn from(name: &'static str) -> Self

Converts to this type from the input type.
source§

impl From<String> for StyledStr

source§

fn from(name: String) -> Self

Converts to this type from the input type.
source§

impl IntoResettable<StyledStr> for Option<&'static str>

source§

fn into_resettable(self) -> Resettable<StyledStr>

Convert to the intended resettable type
source§

impl Ord for StyledStr

source§

fn cmp(&self, other: &StyledStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for StyledStr

source§

fn eq(&self, other: &StyledStr) -> bool

This method tests for self and other values to be equal, and is used diff --git a/clap_builder/builder/struct.TryMapValueParser.html b/clap_builder/builder/struct.TryMapValueParser.html index df3469a18b..c4884eb652 100644 --- a/clap_builder/builder/struct.TryMapValueParser.html +++ b/clap_builder/builder/struct.TryMapValueParser.html @@ -1,4 +1,4 @@ -TryMapValueParser in clap_builder::builder - Rust +TryMapValueParser in clap_builder::builder - Rust
pub struct TryMapValueParser<P, F> { /* private fields */ }
Expand description

Adapt a TypedValueParser from one value to another

See TypedValueParser::try_map

Trait Implementations§

source§

impl<P: Clone, F: Clone> Clone for TryMapValueParser<P, F>

source§

fn clone(&self) -> TryMapValueParser<P, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P: Debug, F: Debug> Debug for TryMapValueParser<P, F>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<P, F, T, E> TypedValueParser for TryMapValueParser<P, F>
where diff --git a/clap_builder/builder/struct.UnknownArgumentValueParser.html b/clap_builder/builder/struct.UnknownArgumentValueParser.html index 73422942e5..3c481817c8 100644 --- a/clap_builder/builder/struct.UnknownArgumentValueParser.html +++ b/clap_builder/builder/struct.UnknownArgumentValueParser.html @@ -1,4 +1,4 @@ -UnknownArgumentValueParser in clap_builder::builder - Rust +UnknownArgumentValueParser in clap_builder::builder - Rust
pub struct UnknownArgumentValueParser { /* private fields */ }
Expand description

When encountered, report ErrorKind::UnknownArgument

Useful to help users migrate, either from old versions or similar tools.

Examples

diff --git a/clap_builder/builder/struct.ValueParser.html b/clap_builder/builder/struct.ValueParser.html index 6344e45970..87ecd5c240 100644 --- a/clap_builder/builder/struct.ValueParser.html +++ b/clap_builder/builder/struct.ValueParser.html @@ -1,4 +1,4 @@ -ValueParser in clap_builder::builder - Rust +ValueParser in clap_builder::builder - Rust
pub struct ValueParser(/* private fields */);
Expand description

Parse/validate argument values

Specified with Arg::value_parser.

ValueParser defines how to convert a raw argument value into a validated and typed value for @@ -175,7 +175,7 @@

Examples

let color: &String = m.get_one("color") .expect("default"); assert_eq!(color, "never");
-
source§

fn from(values: [P; C]) -> Self

Converts to this type from the input type.
source§

impl<P> From<P> for ValueParser
where +
source§

fn from(values: [P; C]) -> Self

Converts to this type from the input type.

source§

impl<P> From<P> for ValueParser
where P: TypedValueParser + Send + Sync + 'static,

Convert a TypedValueParser to ValueParser

Example

let mut cmd = clap::Command::new("raw")
@@ -194,10 +194,10 @@ 

Example

let hostname: &String = m.get_one("hostname") .expect("required"); assert_eq!(hostname, "rust-lang.org");
-
source§

fn from(p: P) -> Self

Converts to this type from the input type.
source§

impl From<Range<i64>> for ValueParser

Create an i64 ValueParser from a N..M range

+
source§

fn from(p: P) -> Self

Converts to this type from the input type.
source§

impl From<Range<i64>> for ValueParser

Create an i64 ValueParser from a N..M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -211,10 +211,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: Range<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFrom<i64>> for ValueParser

Create an i64 ValueParser from a N.. range

+
source§

fn from(value: Range<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFrom<i64>> for ValueParser

Create an i64 ValueParser from a N.. range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -228,10 +228,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeFrom<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueParser

Create an i64 ValueParser from a .. range

+
source§

fn from(value: RangeFrom<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueParser

Create an i64 ValueParser from a .. range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -245,10 +245,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeFull) -> Self

Converts to this type from the input type.
source§

impl From<RangeInclusive<i64>> for ValueParser

Create an i64 ValueParser from a N..=M range

+
source§

fn from(value: RangeFull) -> Self

Converts to this type from the input type.
source§

impl From<RangeInclusive<i64>> for ValueParser

Create an i64 ValueParser from a N..=M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -262,10 +262,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 3001);
-
source§

fn from(value: RangeInclusive<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeTo<i64>> for ValueParser

Create an i64 ValueParser from a ..M range

+
source§

fn from(value: RangeInclusive<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeTo<i64>> for ValueParser

Create an i64 ValueParser from a ..M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -279,10 +279,10 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 80);
-
source§

fn from(value: RangeTo<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeToInclusive<i64>> for ValueParser

Create an i64 ValueParser from a ..=M range

+
source§

fn from(value: RangeTo<i64>) -> Self

Converts to this type from the input type.
source§

impl From<RangeToInclusive<i64>> for ValueParser

Create an i64 ValueParser from a ..=M range

See RangedI64ValueParser for more control over the output type.

See also RangedU64ValueParser

-

Examples

+

Examples

let mut cmd = clap::Command::new("raw")
     .arg(
         clap::Arg::new("port")
@@ -296,11 +296,11 @@ 

Examples

let port: i64 = *m.get_one("port") .expect("required"); assert_eq!(port, 80);
-
source§

fn from(value: RangeToInclusive<i64>) -> Self

Converts to this type from the input type.
source§

impl<P> From<Vec<P>> for ValueParser
where +
source§

fn from(value: RangeToInclusive<i64>) -> Self

Converts to this type from the input type.

source§

impl<P> From<Vec<P>> for ValueParser
where P: Into<PossibleValue>,

Create a ValueParser with PossibleValuesParser

See PossibleValuesParser for more flexibility in creating the PossibleValues.

-

Examples

+

Examples

let possible = vec!["always", "auto", "never"];
 let mut cmd = clap::Command::new("raw")
     .arg(
@@ -317,7 +317,7 @@ 

Examples

let color: &String = m.get_one("color") .expect("default"); assert_eq!(color, "never");
-
source§

fn from(values: Vec<P>) -> Self

Converts to this type from the input type.
source§

impl IntoResettable<ValueParser> for Option<ValueParser>

source§

fn into_resettable(self) -> Resettable<ValueParser>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +
source§

fn from(values: Vec<P>) -> Self

Converts to this type from the input type.

source§

impl IntoResettable<ValueParser> for Option<ValueParser>

source§

fn into_resettable(self) -> Resettable<ValueParser>

Convert to the intended resettable type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/clap_builder/builder/struct.ValueRange.html b/clap_builder/builder/struct.ValueRange.html index fd25a658af..6f44b53a09 100644 --- a/clap_builder/builder/struct.ValueRange.html +++ b/clap_builder/builder/struct.ValueRange.html @@ -1,4 +1,4 @@ -ValueRange in clap_builder::builder - Rust +ValueRange in clap_builder::builder - Rust
pub struct ValueRange { /* private fields */ }
Expand description

Values per occurrence for an argument

Implementations§

source§

impl ValueRange

source

pub const EMPTY: Self = _

Nor argument values, or a flag

source

pub const SINGLE: Self = _

A single argument value, the most common case for options

@@ -24,7 +24,7 @@
Examples
let range = ValueRange::new(0); assert!(!range.takes_values());
-

Trait Implementations§

source§

impl Clone for ValueRange

source§

fn clone(&self) -> ValueRange

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ValueRange

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Range<usize>> for ValueRange

source§

fn from(range: Range<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFrom<usize>> for ValueRange

source§

fn from(range: RangeFrom<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueRange

source§

fn from(_: RangeFull) -> Self

Converts to this type from the input type.
source§

impl From<RangeInclusive<usize>> for ValueRange

source§

fn from(range: RangeInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeTo<usize>> for ValueRange

source§

fn from(range: RangeTo<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeToInclusive<usize>> for ValueRange

source§

fn from(range: RangeToInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<usize> for ValueRange

source§

fn from(fixed: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for ValueRange

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Trait Implementations§

source§

impl Clone for ValueRange

source§

fn clone(&self) -> ValueRange

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ValueRange

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for ValueRange

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Range<usize>> for ValueRange

source§

fn from(range: Range<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFrom<usize>> for ValueRange

source§

fn from(range: RangeFrom<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeFull> for ValueRange

source§

fn from(_: RangeFull) -> Self

Converts to this type from the input type.
source§

impl From<RangeInclusive<usize>> for ValueRange

source§

fn from(range: RangeInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeTo<usize>> for ValueRange

source§

fn from(range: RangeTo<usize>) -> Self

Converts to this type from the input type.
source§

impl From<RangeToInclusive<usize>> for ValueRange

source§

fn from(range: RangeToInclusive<usize>) -> Self

Converts to this type from the input type.
source§

impl From<usize> for ValueRange

source§

fn from(fixed: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for ValueRange

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ValueRange

source§

fn eq(&self, other: &ValueRange) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always diff --git a/clap_builder/builder/styling/enum.AnsiColor.html b/clap_builder/builder/styling/enum.AnsiColor.html index 21a61ba4b6..e4c6d4c12c 100644 --- a/clap_builder/builder/styling/enum.AnsiColor.html +++ b/clap_builder/builder/styling/enum.AnsiColor.html @@ -1,4 +1,4 @@ -AnsiColor in clap_builder::builder::styling - Rust +AnsiColor in clap_builder::builder::styling - Rust
#[repr(u8)]
pub enum AnsiColor {
Show 16 variants Black = 0, Red = 1, diff --git a/clap_builder/builder/styling/enum.Color.html b/clap_builder/builder/styling/enum.Color.html index c14ceea1d0..6466f0df6f 100644 --- a/clap_builder/builder/styling/enum.Color.html +++ b/clap_builder/builder/styling/enum.Color.html @@ -1,4 +1,4 @@ -Color in clap_builder::builder::styling - Rust +Color in clap_builder::builder::styling - Rust
pub enum Color {
     Ansi(AnsiColor),
     Ansi256(Ansi256Color),
diff --git a/clap_builder/builder/styling/index.html b/clap_builder/builder/styling/index.html
index 552713430f..75a0a59aab 100644
--- a/clap_builder/builder/styling/index.html
+++ b/clap_builder/builder/styling/index.html
@@ -1,3 +1,3 @@
-clap_builder::builder::styling - Rust
+clap_builder::builder::styling - Rust
     
Expand description

Terminal Styles for help and error output

Structs

Enums

  • Available 4-bit ANSI color palette codes
  • Any ANSI color code scheme
\ No newline at end of file diff --git a/clap_builder/builder/styling/struct.Ansi256Color.html b/clap_builder/builder/styling/struct.Ansi256Color.html index d8ea1eac93..bf101894fd 100644 --- a/clap_builder/builder/styling/struct.Ansi256Color.html +++ b/clap_builder/builder/styling/struct.Ansi256Color.html @@ -1,4 +1,4 @@ -Ansi256Color in clap_builder::builder::styling - Rust +Ansi256Color in clap_builder::builder::styling - Rust
#[repr(transparent)]
pub struct Ansi256Color(pub u8);
Expand description

256 (8-bit) color support

Trait Implementations§

source§

impl<'ctx> AsContextRef<'ctx> for ContextRef<'ctx>

source§

fn as_ctx_ref(&self) -> LLVMContextRef

Acquires the underlying raw pointer belonging to this ContextRef type.

-
source§

impl<'ctx> Clone for ContextRef<'ctx>

source§

fn clone(&self) -> ContextRef<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for ContextRef<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Context> for ContextRef<'_>

source§

fn eq(&self, other: &Context) -> bool

This method tests for self and other values to be equal, and is used +
source§

impl<'ctx> Clone for ContextRef<'ctx>

source§

fn clone(&self) -> ContextRef<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for ContextRef<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Context> for ContextRef<'_>

source§

fn eq(&self, other: &Context) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ContextRef<'_>> for Context

source§

fn eq(&self, other: &ContextRef<'_>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ContextRef<'_>> for Context

source§

fn eq(&self, other: &ContextRef<'_>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for ContextRef<'ctx>

source§

fn eq(&self, other: &ContextRef<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for ContextRef<'ctx>

source§

fn eq(&self, other: &ContextRef<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> Copy for ContextRef<'ctx>

source§

impl<'ctx> Eq for ContextRef<'ctx>

source§

impl<'ctx> StructuralEq for ContextRef<'ctx>

source§

impl<'ctx> StructuralPartialEq for ContextRef<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for ContextRef<'ctx>

§

impl<'ctx> !Send for ContextRef<'ctx>

§

impl<'ctx> !Sync for ContextRef<'ctx>

§

impl<'ctx> Unpin for ContextRef<'ctx>

§

impl<'ctx> UnwindSafe for ContextRef<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/inkwell/support/enum.LoadLibraryError.html b/inkwell/support/enum.LoadLibraryError.html index 641bcde576..4294f7442b 100644 --- a/inkwell/support/enum.LoadLibraryError.html +++ b/inkwell/support/enum.LoadLibraryError.html @@ -5,7 +5,7 @@ }
Expand description

Possible errors that can occur when loading a library

Variants§

§

UnicodeError

The given path could not be converted to a &str

§

LoadingError

The given path could not be loaded as a library

-

Trait Implementations§

source§

impl Clone for LoadLibraryError

source§

fn clone(&self) -> LoadLibraryError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LoadLibraryError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LoadLibraryError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for LoadLibraryError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for LoadLibraryError

source§

fn eq(&self, other: &LoadLibraryError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for LoadLibraryError

source§

fn clone(&self) -> LoadLibraryError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LoadLibraryError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LoadLibraryError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for LoadLibraryError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for LoadLibraryError

source§

fn eq(&self, other: &LoadLibraryError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for LoadLibraryError

source§

impl Eq for LoadLibraryError

source§

impl StructuralEq for LoadLibraryError

source§

impl StructuralPartialEq for LoadLibraryError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/inkwell/targets/struct.TargetTriple.html b/inkwell/targets/struct.TargetTriple.html index 5122b06b1a..b34915ebce 100644 --- a/inkwell/targets/struct.TargetTriple.html +++ b/inkwell/targets/struct.TargetTriple.html @@ -1,5 +1,5 @@ TargetTriple in inkwell::targets - Rust -
pub struct TargetTriple { /* private fields */ }

Implementations§

source§

impl TargetTriple

source

pub unsafe fn new(triple: LLVMString) -> TargetTriple

source

pub fn create(triple: &str) -> TargetTriple

source

pub fn as_str(&self) -> &CStr

source

pub fn as_ptr(&self) -> *const c_char

Trait Implementations§

source§

impl Debug for TargetTriple

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for TargetTriple

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for TargetTriple

source§

fn eq(&self, other: &TargetTriple) -> bool

This method tests for self and other values to be equal, and is used +
pub struct TargetTriple { /* private fields */ }

Implementations§

source§

impl TargetTriple

source

pub unsafe fn new(triple: LLVMString) -> TargetTriple

source

pub fn create(triple: &str) -> TargetTriple

source

pub fn as_str(&self) -> &CStr

source

pub fn as_ptr(&self) -> *const c_char

Trait Implementations§

source§

impl Debug for TargetTriple

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for TargetTriple

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for TargetTriple

source§

fn eq(&self, other: &TargetTriple) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for TargetTriple

source§

impl StructuralEq for TargetTriple

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/inkwell/types/enum.AnyTypeEnum.html b/inkwell/types/enum.AnyTypeEnum.html index cdba6f8119..f84fcb37f3 100644 --- a/inkwell/types/enum.AnyTypeEnum.html +++ b/inkwell/types/enum.AnyTypeEnum.html @@ -21,9 +21,9 @@
Safety

Undefined behavior, if referenced type isn’t part of AnyTypeEnum

source

pub fn into_array_type(self) -> ArrayType<'ctx>

source

pub fn into_float_type(self) -> FloatType<'ctx>

source

pub fn into_function_type(self) -> FunctionType<'ctx>

source

pub fn into_int_type(self) -> IntType<'ctx>

source

pub fn into_pointer_type(self) -> PointerType<'ctx>

source

pub fn into_struct_type(self) -> StructType<'ctx>

source

pub fn into_vector_type(self) -> VectorType<'ctx>

source

pub fn into_void_type(self) -> VoidType<'ctx>

source

pub fn is_array_type(self) -> bool

source

pub fn is_float_type(self) -> bool

source

pub fn is_function_type(self) -> bool

source

pub fn is_int_type(self) -> bool

source

pub fn is_pointer_type(self) -> bool

source

pub fn is_struct_type(self) -> bool

source

pub fn is_vector_type(self) -> bool

source

pub fn is_void_type(self) -> bool

source

pub fn size_of(&self) -> Option<IntValue<'ctx>>

source

pub fn print_to_string(self) -> LLVMString

Print the definition of a AnyTypeEnum to LLVMString.

-

Trait Implementations§

source§

impl<'ctx> AnyType<'ctx> for AnyTypeEnum<'ctx>

source§

fn as_any_type_enum(&self) -> AnyTypeEnum<'ctx>

Returns an AnyTypeEnum that represents the current type.
source§

fn print_to_string(&self) -> LLVMString

Prints the definition of a Type to a LLVMString.
source§

impl AsTypeRef for AnyTypeEnum<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for AnyTypeEnum<'ctx>

source§

fn clone(&self) -> AnyTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AnyTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AnyTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FunctionType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: FunctionType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VoidType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VoidType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for AnyTypeEnum<'ctx>

source§

fn eq(&self, other: &AnyTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl<'ctx> AnyType<'ctx> for AnyTypeEnum<'ctx>

source§

fn as_any_type_enum(&self) -> AnyTypeEnum<'ctx>

Returns an AnyTypeEnum that represents the current type.
source§

fn print_to_string(&self) -> LLVMString

Prints the definition of a Type to a LLVMString.
source§

impl AsTypeRef for AnyTypeEnum<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for AnyTypeEnum<'ctx>

source§

fn clone(&self) -> AnyTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AnyTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AnyTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FunctionType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: FunctionType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VoidType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VoidType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for AnyTypeEnum<'ctx>

source§

fn eq(&self, other: &AnyTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FunctionType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VoidType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for AnyTypeEnum<'ctx>

source§

impl<'ctx> Eq for AnyTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for AnyTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for AnyTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for AnyTypeEnum<'ctx>

§

impl<'ctx> !Send for AnyTypeEnum<'ctx>

§

impl<'ctx> !Sync for AnyTypeEnum<'ctx>

§

impl<'ctx> Unpin for AnyTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for AnyTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FunctionType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VoidType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for AnyTypeEnum<'ctx>

source§

impl<'ctx> Eq for AnyTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for AnyTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for AnyTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for AnyTypeEnum<'ctx>

§

impl<'ctx> !Send for AnyTypeEnum<'ctx>

§

impl<'ctx> !Sync for AnyTypeEnum<'ctx>

§

impl<'ctx> Unpin for AnyTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for AnyTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/enum.BasicMetadataTypeEnum.html b/inkwell/types/enum.BasicMetadataTypeEnum.html index 8c5c3ee4f8..63d228ce33 100644 --- a/inkwell/types/enum.BasicMetadataTypeEnum.html +++ b/inkwell/types/enum.BasicMetadataTypeEnum.html @@ -8,9 +8,9 @@ VectorType(VectorType<'ctx>), MetadataType(MetadataType<'ctx>), }

Variants§

§

ArrayType(ArrayType<'ctx>)

§

FloatType(FloatType<'ctx>)

§

IntType(IntType<'ctx>)

§

PointerType(PointerType<'ctx>)

§

StructType(StructType<'ctx>)

§

VectorType(VectorType<'ctx>)

§

MetadataType(MetadataType<'ctx>)

Implementations§

source§

impl<'ctx> BasicMetadataTypeEnum<'ctx>

source

pub fn into_array_type(self) -> ArrayType<'ctx>

source

pub fn into_float_type(self) -> FloatType<'ctx>

source

pub fn into_int_type(self) -> IntType<'ctx>

source

pub fn into_pointer_type(self) -> PointerType<'ctx>

source

pub fn into_struct_type(self) -> StructType<'ctx>

source

pub fn into_vector_type(self) -> VectorType<'ctx>

source

pub fn into_metadata_type(self) -> MetadataType<'ctx>

source

pub fn is_array_type(self) -> bool

source

pub fn is_float_type(self) -> bool

source

pub fn is_int_type(self) -> bool

source

pub fn is_metadata_type(self) -> bool

source

pub fn is_pointer_type(self) -> bool

source

pub fn is_struct_type(self) -> bool

source

pub fn is_vector_type(self) -> bool

source

pub fn print_to_string(self) -> LLVMString

Print the definition of a BasicMetadataTypeEnum to LLVMString.

-

Trait Implementations§

source§

impl AsTypeRef for BasicMetadataTypeEnum<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for BasicMetadataTypeEnum<'ctx>

source§

fn clone(&self) -> BasicMetadataTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicMetadataTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicMetadataTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: BasicTypeEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: MetadataType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for BasicMetadataTypeEnum<'ctx>

source§

fn eq(&self, other: &BasicMetadataTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl AsTypeRef for BasicMetadataTypeEnum<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for BasicMetadataTypeEnum<'ctx>

source§

fn clone(&self) -> BasicMetadataTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicMetadataTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicMetadataTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: BasicTypeEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: MetadataType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for BasicMetadataTypeEnum<'ctx>

source§

fn eq(&self, other: &BasicMetadataTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for MetadataType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> Eq for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicMetadataTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> !Send for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> !Sync for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> Unpin for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicMetadataTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for MetadataType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> Eq for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicMetadataTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> !Send for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> !Sync for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> Unpin for BasicMetadataTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicMetadataTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/enum.BasicTypeEnum.html b/inkwell/types/enum.BasicTypeEnum.html index f060afee7d..c096e62dd1 100644 --- a/inkwell/types/enum.BasicTypeEnum.html +++ b/inkwell/types/enum.BasicTypeEnum.html @@ -30,9 +30,9 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>

Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for BasicTypeEnum<'ctx>

source§

fn clone(&self) -> BasicTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: BasicTypeEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for BasicTypeEnum<'ctx>

source§

fn eq(&self, other: &BasicTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for BasicTypeEnum<'ctx>

source§

fn clone(&self) -> BasicTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: BasicTypeEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for BasicTypeEnum<'ctx>

source§

fn eq(&self, other: &BasicTypeEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicTypeEnum<'ctx>

source§

impl<'ctx> Eq for BasicTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicTypeEnum<'ctx>

§

impl<'ctx> !Send for BasicTypeEnum<'ctx>

§

impl<'ctx> !Sync for BasicTypeEnum<'ctx>

§

impl<'ctx> Unpin for BasicTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicTypeEnum<'ctx>

source§

impl<'ctx> Eq for BasicTypeEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicTypeEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicTypeEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicTypeEnum<'ctx>

§

impl<'ctx> !Send for BasicTypeEnum<'ctx>

§

impl<'ctx> !Sync for BasicTypeEnum<'ctx>

§

impl<'ctx> Unpin for BasicTypeEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicTypeEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.ArrayType.html b/inkwell/types/struct.ArrayType.html index 1e0c3d042d..01570de823 100644 --- a/inkwell/types/struct.ArrayType.html +++ b/inkwell/types/struct.ArrayType.html @@ -139,9 +139,9 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>

Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for ArrayType<'ctx>

source§

fn clone(&self) -> ArrayType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for ArrayType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ArrayType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for ArrayType<'ctx>

source§

fn eq(&self, other: &ArrayType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for ArrayType<'ctx>

source§

fn clone(&self) -> ArrayType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for ArrayType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ArrayType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for ArrayType<'ctx>

source§

fn eq(&self, other: &ArrayType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for ArrayType<'ctx>

source§

impl<'ctx> Eq for ArrayType<'ctx>

source§

impl<'ctx> StructuralEq for ArrayType<'ctx>

source§

impl<'ctx> StructuralPartialEq for ArrayType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for ArrayType<'ctx>

§

impl<'ctx> !Send for ArrayType<'ctx>

§

impl<'ctx> !Sync for ArrayType<'ctx>

§

impl<'ctx> Unpin for ArrayType<'ctx>

§

impl<'ctx> UnwindSafe for ArrayType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for ArrayType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for ArrayType<'ctx>

source§

impl<'ctx> Eq for ArrayType<'ctx>

source§

impl<'ctx> StructuralEq for ArrayType<'ctx>

source§

impl<'ctx> StructuralPartialEq for ArrayType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for ArrayType<'ctx>

§

impl<'ctx> !Send for ArrayType<'ctx>

§

impl<'ctx> !Sync for ArrayType<'ctx>

§

impl<'ctx> Unpin for ArrayType<'ctx>

§

impl<'ctx> UnwindSafe for ArrayType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.FloatType.html b/inkwell/types/struct.FloatType.html index 8850999dd8..fdb58373d3 100644 --- a/inkwell/types/struct.FloatType.html +++ b/inkwell/types/struct.FloatType.html @@ -164,7 +164,7 @@
Example
) -> FunctionType<'ctx>

Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for FloatType<'ctx>

source§

fn clone(&self) -> FloatType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for FloatType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FloatType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathType<'ctx> for FloatType<'ctx>

§

type ValueType = FloatValue<'ctx>

The value instance of a float or float vector type.
§

type MathConvType = IntType<'ctx>

The type for float to int or float vector to int vector conversions.
source§

impl<'ctx> From<FloatType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for FloatType<'ctx>

source§

fn eq(&self, other: &FloatType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for FloatType<'ctx>

source§

impl<'ctx> Eq for FloatType<'ctx>

source§

impl<'ctx> StructuralEq for FloatType<'ctx>

source§

impl<'ctx> StructuralPartialEq for FloatType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FloatType<'ctx>

§

impl<'ctx> !Send for FloatType<'ctx>

§

impl<'ctx> !Sync for FloatType<'ctx>

§

impl<'ctx> Unpin for FloatType<'ctx>

§

impl<'ctx> UnwindSafe for FloatType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for FloatType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for FloatType<'ctx>

source§

impl<'ctx> Eq for FloatType<'ctx>

source§

impl<'ctx> StructuralEq for FloatType<'ctx>

source§

impl<'ctx> StructuralPartialEq for FloatType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FloatType<'ctx>

§

impl<'ctx> !Send for FloatType<'ctx>

§

impl<'ctx> !Sync for FloatType<'ctx>

§

impl<'ctx> Unpin for FloatType<'ctx>

§

impl<'ctx> UnwindSafe for FloatType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.IntType.html b/inkwell/types/struct.IntType.html index db6c2f0b8e..cf1d999aa0 100644 --- a/inkwell/types/struct.IntType.html +++ b/inkwell/types/struct.IntType.html @@ -191,9 +191,9 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>

Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for IntType<'ctx>

source§

fn clone(&self) -> IntType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for IntType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for IntType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<IntType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> IntMathType<'ctx> for IntType<'ctx>

§

type ValueType = IntValue<'ctx>

The value instance of an int or int vector type.
§

type MathConvType = FloatType<'ctx>

The type for int to float or int vector to float vector conversions.
§

type PtrConvType = PointerType<'ctx>

The type for int to pointer or int vector to pointer vector conversions.
source§

impl<'ctx> PartialEq for IntType<'ctx>

source§

fn eq(&self, other: &IntType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for IntType<'ctx>

source§

fn clone(&self) -> IntType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for IntType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for IntType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<IntType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> IntMathType<'ctx> for IntType<'ctx>

§

type ValueType = IntValue<'ctx>

The value instance of an int or int vector type.
§

type MathConvType = FloatType<'ctx>

The type for int to float or int vector to float vector conversions.
§

type PtrConvType = PointerType<'ctx>

The type for int to pointer or int vector to pointer vector conversions.
source§

impl<'ctx> PartialEq for IntType<'ctx>

source§

fn eq(&self, other: &IntType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for IntType<'ctx>

source§

impl<'ctx> Eq for IntType<'ctx>

source§

impl<'ctx> StructuralEq for IntType<'ctx>

source§

impl<'ctx> StructuralPartialEq for IntType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for IntType<'ctx>

§

impl<'ctx> !Send for IntType<'ctx>

§

impl<'ctx> !Sync for IntType<'ctx>

§

impl<'ctx> Unpin for IntType<'ctx>

§

impl<'ctx> UnwindSafe for IntType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for IntType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for IntType<'ctx>

source§

impl<'ctx> Eq for IntType<'ctx>

source§

impl<'ctx> StructuralEq for IntType<'ctx>

source§

impl<'ctx> StructuralPartialEq for IntType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for IntType<'ctx>

§

impl<'ctx> !Send for IntType<'ctx>

§

impl<'ctx> !Sync for IntType<'ctx>

§

impl<'ctx> Unpin for IntType<'ctx>

§

impl<'ctx> UnwindSafe for IntType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.PointerType.html b/inkwell/types/struct.PointerType.html index 24c1093397..4d650697a3 100644 --- a/inkwell/types/struct.PointerType.html +++ b/inkwell/types/struct.PointerType.html @@ -167,9 +167,9 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>
Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for PointerType<'ctx>

source§

fn clone(&self) -> PointerType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for PointerType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PointerType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<PointerType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for PointerType<'ctx>

source§

fn eq(&self, other: &PointerType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for PointerType<'ctx>

source§

fn clone(&self) -> PointerType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for PointerType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PointerType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<PointerType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for PointerType<'ctx>

source§

fn eq(&self, other: &PointerType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PointerMathType<'ctx> for PointerType<'ctx>

§

type ValueType = PointerValue<'ctx>

The value instance of a pointer type.
§

type PtrConvType = IntType<'ctx>

The type for pointer to int or pointer vector to int conversions.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PointerType<'ctx>

source§

impl<'ctx> Eq for PointerType<'ctx>

source§

impl<'ctx> StructuralEq for PointerType<'ctx>

source§

impl<'ctx> StructuralPartialEq for PointerType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PointerType<'ctx>

§

impl<'ctx> !Send for PointerType<'ctx>

§

impl<'ctx> !Sync for PointerType<'ctx>

§

impl<'ctx> Unpin for PointerType<'ctx>

§

impl<'ctx> UnwindSafe for PointerType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PointerMathType<'ctx> for PointerType<'ctx>

§

type ValueType = PointerValue<'ctx>

The value instance of a pointer type.
§

type PtrConvType = IntType<'ctx>

The type for pointer to int or pointer vector to int conversions.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for PointerType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PointerType<'ctx>

source§

impl<'ctx> Eq for PointerType<'ctx>

source§

impl<'ctx> StructuralEq for PointerType<'ctx>

source§

impl<'ctx> StructuralPartialEq for PointerType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PointerType<'ctx>

§

impl<'ctx> !Send for PointerType<'ctx>

§

impl<'ctx> !Sync for PointerType<'ctx>

§

impl<'ctx> Unpin for PointerType<'ctx>

§

impl<'ctx> UnwindSafe for PointerType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.StructType.html b/inkwell/types/struct.StructType.html index 5e8d4d9410..0607fe3637 100644 --- a/inkwell/types/struct.StructType.html +++ b/inkwell/types/struct.StructType.html @@ -211,7 +211,7 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>
Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for StructType<'ctx>

source§

fn clone(&self) -> StructType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for StructType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StructType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<StructType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for StructType<'ctx>

source§

fn eq(&self, other: &StructType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for StructType<'ctx>

source§

fn clone(&self) -> StructType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for StructType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StructType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<StructType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for StructType<'ctx>

source§

fn eq(&self, other: &StructType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for StructType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for StructType<'ctx>

source§

impl<'ctx> Eq for StructType<'ctx>

source§

impl<'ctx> StructuralEq for StructType<'ctx>

source§

impl<'ctx> StructuralPartialEq for StructType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for StructType<'ctx>

§

impl<'ctx> !Send for StructType<'ctx>

§

impl<'ctx> !Sync for StructType<'ctx>

§

impl<'ctx> Unpin for StructType<'ctx>

§

impl<'ctx> UnwindSafe for StructType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/inkwell/types/struct.VectorType.html b/inkwell/types/struct.VectorType.html index 078b565dbd..bda623ec59 100644 --- a/inkwell/types/struct.VectorType.html +++ b/inkwell/types/struct.VectorType.html @@ -157,9 +157,9 @@
Example
param_types: &[BasicMetadataTypeEnum<'ctx>], is_var_args: bool ) -> FunctionType<'ctx>

Create a FunctionType with this BasicType as its return type. Read more
source§

fn is_sized(&self) -> bool

Determines whether or not this BasicType is sized or not. -For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for VectorType<'ctx>

source§

fn clone(&self) -> VectorType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VectorType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VectorType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of a float or float vector type.
§

type MathConvType = VectorType<'ctx>

The type for float to int or float vector to int vector conversions.
source§

impl<'ctx> From<VectorType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> IntMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of an int or int vector type.
§

type MathConvType = VectorType<'ctx>

The type for int to float or int vector to float vector conversions.
§

type PtrConvType = VectorType<'ctx>

The type for int to pointer or int vector to pointer vector conversions.
source§

impl<'ctx> PartialEq for VectorType<'ctx>

source§

fn eq(&self, other: &VectorType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +For example, opaque structs are unsized. Read more
source§

fn size_of(&self) -> Option<IntValue<'ctx>>

Gets the size of this BasicType. Value may vary depending on the target architecture. Read more
source§

fn array_type(&self, size: u32) -> ArrayType<'ctx>

Create an ArrayType with this BasicType as its elements. Read more
source§

fn ptr_type(&self, address_space: AddressSpace) -> PointerType<'ctx>

Create a PointerType that points to this BasicType. Read more
source§

impl<'ctx> Clone for VectorType<'ctx>

source§

fn clone(&self) -> VectorType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VectorType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VectorType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of a float or float vector type.
§

type MathConvType = VectorType<'ctx>

The type for float to int or float vector to int vector conversions.
source§

impl<'ctx> From<VectorType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> IntMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of an int or int vector type.
§

type MathConvType = VectorType<'ctx>

The type for int to float or int vector to float vector conversions.
§

type PtrConvType = VectorType<'ctx>

The type for int to pointer or int vector to pointer vector conversions.
source§

impl<'ctx> PartialEq for VectorType<'ctx>

source§

fn eq(&self, other: &VectorType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PointerMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of a pointer type.
§

type PtrConvType = VectorType<'ctx>

The type for pointer to int or pointer vector to int conversions.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for VectorType<'ctx>

source§

impl<'ctx> Eq for VectorType<'ctx>

source§

impl<'ctx> StructuralEq for VectorType<'ctx>

source§

impl<'ctx> StructuralPartialEq for VectorType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for VectorType<'ctx>

§

impl<'ctx> !Send for VectorType<'ctx>

§

impl<'ctx> !Sync for VectorType<'ctx>

§

impl<'ctx> Unpin for VectorType<'ctx>

§

impl<'ctx> UnwindSafe for VectorType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PointerMathType<'ctx> for VectorType<'ctx>

§

type ValueType = VectorValue<'ctx>

The value instance of a pointer type.
§

type PtrConvType = VectorType<'ctx>

The type for pointer to int or pointer vector to int conversions.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for VectorType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for VectorType<'ctx>

source§

impl<'ctx> Eq for VectorType<'ctx>

source§

impl<'ctx> StructuralEq for VectorType<'ctx>

source§

impl<'ctx> StructuralPartialEq for VectorType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for VectorType<'ctx>

§

impl<'ctx> !Send for VectorType<'ctx>

§

impl<'ctx> !Sync for VectorType<'ctx>

§

impl<'ctx> Unpin for VectorType<'ctx>

§

impl<'ctx> UnwindSafe for VectorType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/types/struct.VoidType.html b/inkwell/types/struct.VoidType.html index da73de979b..6a909e3605 100644 --- a/inkwell/types/struct.VoidType.html +++ b/inkwell/types/struct.VoidType.html @@ -34,7 +34,7 @@
Example
let void_type = context.void_type(); let fn_type = void_type.fn_type(&[], false);
source

pub fn print_to_string(self) -> LLVMString

Print the definition of a VoidType to LLVMString.

-

Trait Implementations§

source§

impl<'ctx> AnyType<'ctx> for VoidType<'ctx>

source§

fn as_any_type_enum(&self) -> AnyTypeEnum<'ctx>

Returns an AnyTypeEnum that represents the current type.
source§

fn print_to_string(&self) -> LLVMString

Prints the definition of a Type to a LLVMString.
source§

impl AsTypeRef for VoidType<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for VoidType<'ctx>

source§

fn clone(&self) -> VoidType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VoidType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VoidType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<VoidType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VoidType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for VoidType<'ctx>

source§

fn eq(&self, other: &VoidType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl<'ctx> AnyType<'ctx> for VoidType<'ctx>

source§

fn as_any_type_enum(&self) -> AnyTypeEnum<'ctx>

Returns an AnyTypeEnum that represents the current type.
source§

fn print_to_string(&self) -> LLVMString

Prints the definition of a Type to a LLVMString.
source§

impl AsTypeRef for VoidType<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for VoidType<'ctx>

source§

fn clone(&self) -> VoidType<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VoidType<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VoidType<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<VoidType<'ctx>> for AnyTypeEnum<'ctx>

source§

fn from(value: VoidType<'_>) -> AnyTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for VoidType<'ctx>

source§

fn eq(&self, other: &VoidType<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for VoidType<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for VoidType<'ctx>

source§

impl<'ctx> Eq for VoidType<'ctx>

source§

impl<'ctx> StructuralEq for VoidType<'ctx>

source§

impl<'ctx> StructuralPartialEq for VoidType<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for VoidType<'ctx>

§

impl<'ctx> !Send for VoidType<'ctx>

§

impl<'ctx> !Sync for VoidType<'ctx>

§

impl<'ctx> Unpin for VoidType<'ctx>

§

impl<'ctx> UnwindSafe for VoidType<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/inkwell/values/enum.AggregateValueEnum.html b/inkwell/values/enum.AggregateValueEnum.html index 0c4175df28..eac44e1229 100644 --- a/inkwell/values/enum.AggregateValueEnum.html +++ b/inkwell/values/enum.AggregateValueEnum.html @@ -6,18 +6,18 @@
Safety

The ref must be valid and of supported aggregate type enum options (LLVMTypeKind).

source

pub fn is_array_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AggregateValue<'ctx> for AggregateValueEnum<'ctx>

source§

fn as_aggregate_value_enum(&self) -> AggregateValueEnum<'ctx>

Returns an enum containing a typed version of the AggregateValue.
source§

impl<'ctx> AnyValue<'ctx> for AggregateValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for AggregateValueEnum<'_>

source§

impl<'ctx> BasicValue<'ctx> for AggregateValueEnum<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for AggregateValueEnum<'ctx>

source§

fn clone(&self) -> AggregateValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AggregateValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AggregateValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for AggregateValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for AggregateValueEnum<'ctx>

source§

fn clone(&self) -> AggregateValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AggregateValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AggregateValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for AggregateValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for AggregateValueEnum<'ctx>

source§

impl<'ctx> Eq for AggregateValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for AggregateValueEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for AggregateValueEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for AggregateValueEnum<'ctx>

§

impl<'ctx> !Send for AggregateValueEnum<'ctx>

§

impl<'ctx> !Sync for AggregateValueEnum<'ctx>

§

impl<'ctx> Unpin for AggregateValueEnum<'ctx>

§

impl<'ctx> UnwindSafe for AggregateValueEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/inkwell/values/enum.AnyValueEnum.html b/inkwell/values/enum.AnyValueEnum.html index 29d98d4ded..4d0a299827 100644 --- a/inkwell/values/enum.AnyValueEnum.html +++ b/inkwell/values/enum.AnyValueEnum.html @@ -13,51 +13,51 @@ }

Variants§

§

ArrayValue(ArrayValue<'ctx>)

§

IntValue(IntValue<'ctx>)

§

FloatValue(FloatValue<'ctx>)

§

PhiValue(PhiValue<'ctx>)

§

FunctionValue(FunctionValue<'ctx>)

§

PointerValue(PointerValue<'ctx>)

§

StructValue(StructValue<'ctx>)

§

VectorValue(VectorValue<'ctx>)

§

InstructionValue(InstructionValue<'ctx>)

§

MetadataValue(MetadataValue<'ctx>)

Implementations§

source§

impl<'ctx> AnyValueEnum<'ctx>

source

pub unsafe fn new(value: LLVMValueRef) -> Self

Get a value from an LLVMValueRef.

Safety

The ref must be valid and of supported enum type options (LLVMTypeKind).

-
source

pub fn get_type(&self) -> AnyTypeEnum<'ctx>

source

pub fn is_array_value(self) -> bool

source

pub fn is_int_value(self) -> bool

source

pub fn is_float_value(self) -> bool

source

pub fn is_phi_value(self) -> bool

source

pub fn is_function_value(self) -> bool

source

pub fn is_pointer_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn is_vector_value(self) -> bool

source

pub fn is_instruction_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_int_value(self) -> IntValue<'ctx>

source

pub fn into_float_value(self) -> FloatValue<'ctx>

source

pub fn into_phi_value(self) -> PhiValue<'ctx>

source

pub fn into_function_value(self) -> FunctionValue<'ctx>

source

pub fn into_pointer_value(self) -> PointerValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

source

pub fn into_vector_value(self) -> VectorValue<'ctx>

source

pub fn into_instruction_value(self) -> InstructionValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for AnyValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for AnyValueEnum<'_>

source§

impl<'ctx> Clone for AnyValueEnum<'ctx>

source§

fn clone(&self) -> AnyValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AnyValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AnyValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FunctionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: InstructionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PhiValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for AnyValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

source

pub fn get_type(&self) -> AnyTypeEnum<'ctx>

source

pub fn is_array_value(self) -> bool

source

pub fn is_int_value(self) -> bool

source

pub fn is_float_value(self) -> bool

source

pub fn is_phi_value(self) -> bool

source

pub fn is_function_value(self) -> bool

source

pub fn is_pointer_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn is_vector_value(self) -> bool

source

pub fn is_instruction_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_int_value(self) -> IntValue<'ctx>

source

pub fn into_float_value(self) -> FloatValue<'ctx>

source

pub fn into_phi_value(self) -> PhiValue<'ctx>

source

pub fn into_function_value(self) -> FunctionValue<'ctx>

source

pub fn into_pointer_value(self) -> PointerValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

source

pub fn into_vector_value(self) -> VectorValue<'ctx>

source

pub fn into_instruction_value(self) -> InstructionValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for AnyValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for AnyValueEnum<'_>

source§

impl<'ctx> Clone for AnyValueEnum<'ctx>

source§

fn clone(&self) -> AnyValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for AnyValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AnyValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FunctionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: InstructionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PhiValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for AnyValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PhiValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PhiValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PhiValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for AnyValueEnum<'ctx>

source§

impl<'ctx> Eq for AnyValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for AnyValueEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for AnyValueEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for AnyValueEnum<'ctx>

§

impl<'ctx> !Send for AnyValueEnum<'ctx>

§

impl<'ctx> !Sync for AnyValueEnum<'ctx>

§

impl<'ctx> Unpin for AnyValueEnum<'ctx>

§

impl<'ctx> UnwindSafe for AnyValueEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for AnyValueEnum<'ctx>

source§

impl<'ctx> Eq for AnyValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for AnyValueEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for AnyValueEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for AnyValueEnum<'ctx>

§

impl<'ctx> !Send for AnyValueEnum<'ctx>

§

impl<'ctx> !Sync for AnyValueEnum<'ctx>

§

impl<'ctx> Unpin for AnyValueEnum<'ctx>

§

impl<'ctx> UnwindSafe for AnyValueEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/enum.BasicMetadataValueEnum.html b/inkwell/values/enum.BasicMetadataValueEnum.html index d2e4747065..b4b6774ea3 100644 --- a/inkwell/values/enum.BasicMetadataValueEnum.html +++ b/inkwell/values/enum.BasicMetadataValueEnum.html @@ -7,39 +7,39 @@ 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>

source

pub fn is_array_value(self) -> bool

source

pub fn is_int_value(self) -> bool

source

pub fn is_float_value(self) -> bool

source

pub fn is_pointer_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn is_vector_value(self) -> bool

source

pub fn is_metadata_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_int_value(self) -> IntValue<'ctx>

source

pub fn into_float_value(self) -> FloatValue<'ctx>

source

pub fn into_pointer_value(self) -> PointerValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

source

pub fn into_vector_value(self) -> VectorValue<'ctx>

source

pub fn into_metadata_value(self) -> MetadataValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for BasicMetadataValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for BasicMetadataValueEnum<'_>

source§

impl<'ctx> Clone for BasicMetadataValueEnum<'ctx>

source§

fn clone(&self) -> BasicMetadataValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicMetadataValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicMetadataValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for BasicMetadataValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

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>

source

pub fn is_array_value(self) -> bool

source

pub fn is_int_value(self) -> bool

source

pub fn is_float_value(self) -> bool

source

pub fn is_pointer_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn is_vector_value(self) -> bool

source

pub fn is_metadata_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_int_value(self) -> IntValue<'ctx>

source

pub fn into_float_value(self) -> FloatValue<'ctx>

source

pub fn into_pointer_value(self) -> PointerValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

source

pub fn into_vector_value(self) -> VectorValue<'ctx>

source

pub fn into_metadata_value(self) -> MetadataValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for BasicMetadataValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for BasicMetadataValueEnum<'_>

source§

impl<'ctx> Clone for BasicMetadataValueEnum<'ctx>

source§

fn clone(&self) -> BasicMetadataValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicMetadataValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicMetadataValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for BasicMetadataValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicMetadataValueEnum<'ctx>

source§

impl<'ctx> Eq for BasicMetadataValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicMetadataValueEnum<'ctx>

source§

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> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicMetadataValueEnum<'ctx>

source§

impl<'ctx> Eq for BasicMetadataValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicMetadataValueEnum<'ctx>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/enum.BasicValueEnum.html b/inkwell/values/enum.BasicValueEnum.html index f96139e5d0..f4c7a7f47b 100644 --- a/inkwell/values/enum.BasicValueEnum.html +++ b/inkwell/values/enum.BasicValueEnum.html @@ -12,35 +12,35 @@
Safety
source

pub fn get_name(&self) -> &CStr

Get the name of the BasicValueEnum.

source

pub fn set_name(&self, name: &str)

Set name of the BasicValueEnum.

source

pub fn get_type(&self) -> BasicTypeEnum<'ctx>

source

pub fn is_array_value(self) -> bool

source

pub fn is_int_value(self) -> bool

source

pub fn is_float_value(self) -> bool

source

pub fn is_pointer_value(self) -> bool

source

pub fn is_struct_value(self) -> bool

source

pub fn is_vector_value(self) -> bool

source

pub fn into_array_value(self) -> ArrayValue<'ctx>

source

pub fn into_int_value(self) -> IntValue<'ctx>

source

pub fn into_float_value(self) -> FloatValue<'ctx>

source

pub fn into_pointer_value(self) -> PointerValue<'ctx>

source

pub fn into_struct_value(self) -> StructValue<'ctx>

source

pub fn into_vector_value(self) -> VectorValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for BasicValueEnum<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for BasicValueEnum<'_>

source§

impl<'ctx> BasicValue<'ctx> for BasicValueEnum<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for BasicValueEnum<'ctx>

source§

fn clone(&self) -> BasicValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for BasicValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for BasicValueEnum<'ctx>

source§

fn clone(&self) -> BasicValueEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicValueEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicValueEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<BasicValueEnum<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: BasicValueEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for BasicValueEnum<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicValueEnum<'ctx>

source§

impl<'ctx> Eq for BasicValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicValueEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicValueEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicValueEnum<'ctx>

§

impl<'ctx> !Send for BasicValueEnum<'ctx>

§

impl<'ctx> !Sync for BasicValueEnum<'ctx>

§

impl<'ctx> Unpin for BasicValueEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicValueEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for BasicValueEnum<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicValueEnum<'ctx>

source§

impl<'ctx> Eq for BasicValueEnum<'ctx>

source§

impl<'ctx> StructuralEq for BasicValueEnum<'ctx>

source§

impl<'ctx> StructuralPartialEq for BasicValueEnum<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for BasicValueEnum<'ctx>

§

impl<'ctx> !Send for BasicValueEnum<'ctx>

§

impl<'ctx> !Sync for BasicValueEnum<'ctx>

§

impl<'ctx> Unpin for BasicValueEnum<'ctx>

§

impl<'ctx> UnwindSafe for BasicValueEnum<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.ArrayValue.html b/inkwell/values/struct.ArrayValue.html index add4ab87d5..ff388689cb 100644 --- a/inkwell/values/struct.ArrayValue.html +++ b/inkwell/values/struct.ArrayValue.html @@ -43,27 +43,27 @@
Example
let result = CStr::from_bytes_with_nul(b"hello!\0").unwrap(); assert_eq!(string.get_string_constant(), Some(result));

Trait Implementations§

source§

impl<'ctx> AggregateValue<'ctx> for ArrayValue<'ctx>

source§

fn as_aggregate_value_enum(&self) -> AggregateValueEnum<'ctx>

Returns an enum containing a typed version of the AggregateValue.
source§

impl<'ctx> AnyValue<'ctx> for ArrayValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for ArrayValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for ArrayValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for ArrayValue<'ctx>

source§

fn clone(&self) -> ArrayValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ArrayValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ArrayValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for ArrayValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for ArrayValue<'ctx>

source§

fn clone(&self) -> ArrayValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ArrayValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ArrayValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: ArrayValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for ArrayValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for ArrayValue<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for ArrayValue<'ctx>

source§

impl<'ctx> Eq for ArrayValue<'ctx>

source§

impl<'ctx> StructuralEq for ArrayValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for ArrayValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for ArrayValue<'ctx>

§

impl<'ctx> !Send for ArrayValue<'ctx>

§

impl<'ctx> !Sync for ArrayValue<'ctx>

§

impl<'ctx> Unpin for ArrayValue<'ctx>

§

impl<'ctx> UnwindSafe for ArrayValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq for ArrayValue<'ctx>

source§

fn eq(&self, other: &ArrayValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for ArrayValue<'ctx>

source§

impl<'ctx> Eq for ArrayValue<'ctx>

source§

impl<'ctx> StructuralEq for ArrayValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for ArrayValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for ArrayValue<'ctx>

§

impl<'ctx> !Send for ArrayValue<'ctx>

§

impl<'ctx> !Sync for ArrayValue<'ctx>

§

impl<'ctx> Unpin for ArrayValue<'ctx>

§

impl<'ctx> UnwindSafe for ArrayValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.CallSiteValue.html b/inkwell/values/struct.CallSiteValue.html index 21e701c8bf..d04f59158d 100644 --- a/inkwell/values/struct.CallSiteValue.html +++ b/inkwell/values/struct.CallSiteValue.html @@ -323,7 +323,7 @@
Example
let call_site_value = builder.build_call(fn_value, &[], "my_fn").unwrap(); call_site_value.set_alignment_attribute(AttributeLoc::Param(0), 2);
-

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for CallSiteValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for CallSiteValue<'_>

source§

impl<'ctx> Clone for CallSiteValue<'ctx>

source§

fn clone(&self) -> CallSiteValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for CallSiteValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CallSiteValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> Hash for CallSiteValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for CallSiteValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for CallSiteValue<'_>

source§

impl<'ctx> Clone for CallSiteValue<'ctx>

source§

fn clone(&self) -> CallSiteValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for CallSiteValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CallSiteValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> Hash for CallSiteValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq for CallSiteValue<'ctx>

source§

fn eq(&self, other: &CallSiteValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always diff --git a/inkwell/values/struct.FloatValue.html b/inkwell/values/struct.FloatValue.html index acbe7d83a6..7999d70ebc 100644 --- a/inkwell/values/struct.FloatValue.html +++ b/inkwell/values/struct.FloatValue.html @@ -28,23 +28,23 @@
Example
assert_eq!(f64_1_2.get_constant(), Some((1.2, false)));
source

pub fn replace_all_uses_with(self, other: FloatValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for FloatValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for FloatValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for FloatValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for FloatValue<'ctx>

source§

fn clone(&self) -> FloatValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for FloatValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FloatValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathValue<'ctx> for FloatValue<'ctx>

§

type BaseType = FloatType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> FloatValue<'ctx>

source§

impl<'ctx> From<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for FloatValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for FloatValue<'ctx>

source§

fn clone(&self) -> FloatValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for FloatValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FloatValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathValue<'ctx> for FloatValue<'ctx>

§

type BaseType = FloatType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> FloatValue<'ctx>

source§

impl<'ctx> From<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: FloatValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for FloatValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for FloatValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FloatValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for FloatValue<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for FloatValue<'ctx>

source§

impl<'ctx> Eq for FloatValue<'ctx>

source§

impl<'ctx> StructuralEq for FloatValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for FloatValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FloatValue<'ctx>

§

impl<'ctx> !Send for FloatValue<'ctx>

§

impl<'ctx> !Sync for FloatValue<'ctx>

§

impl<'ctx> Unpin for FloatValue<'ctx>

§

impl<'ctx> UnwindSafe for FloatValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq for FloatValue<'ctx>

source§

fn eq(&self, other: &FloatValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for FloatValue<'ctx>

source§

impl<'ctx> Eq for FloatValue<'ctx>

source§

impl<'ctx> StructuralEq for FloatValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for FloatValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FloatValue<'ctx>

§

impl<'ctx> !Send for FloatValue<'ctx>

§

impl<'ctx> !Sync for FloatValue<'ctx>

§

impl<'ctx> Unpin for FloatValue<'ctx>

§

impl<'ctx> UnwindSafe for FloatValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.FunctionValue.html b/inkwell/values/struct.FunctionValue.html index 1c2ee968e5..693590afa0 100644 --- a/inkwell/values/struct.FunctionValue.html +++ b/inkwell/values/struct.FunctionValue.html @@ -127,14 +127,14 @@
Example
source

pub fn get_subprogram(self) -> Option<DISubprogram<'ctx>>

Get the debug info descriptor

source

pub fn get_section(&self) -> Option<&CStr>

Get the section to which this function belongs

source

pub fn set_section(self, section: Option<&str>)

Set the section to which this function should belong

-

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for FunctionValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for FunctionValue<'_>

source§

impl<'ctx> Clone for FunctionValue<'ctx>

source§

fn clone(&self) -> FunctionValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FunctionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FunctionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FunctionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for FunctionValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for FunctionValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for FunctionValue<'_>

source§

impl<'ctx> Clone for FunctionValue<'ctx>

source§

fn clone(&self) -> FunctionValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FunctionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FunctionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: FunctionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for FunctionValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<FunctionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for FunctionValue<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for FunctionValue<'ctx>

source§

fn eq(&self, other: &FunctionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PassManagerSubType for FunctionValue<'ctx>

§

type Input = Module<'ctx>

source§

unsafe fn create<I: Borrow<Self::Input>>(input: I) -> LLVMPassManagerRef

source§

unsafe fn run_in_pass_manager(&self, pass_manager: &PassManager<Self>) -> bool

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for FunctionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for FunctionValue<'ctx>

source§

impl<'ctx> Eq for FunctionValue<'ctx>

source§

impl<'ctx> StructuralEq for FunctionValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for FunctionValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FunctionValue<'ctx>

§

impl<'ctx> !Send for FunctionValue<'ctx>

§

impl<'ctx> !Sync for FunctionValue<'ctx>

§

impl<'ctx> Unpin for FunctionValue<'ctx>

§

impl<'ctx> UnwindSafe for FunctionValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/inkwell/values/struct.GlobalValue.html b/inkwell/values/struct.GlobalValue.html index b3acfacaf5..8a89ed5376 100644 --- a/inkwell/values/struct.GlobalValue.html +++ b/inkwell/values/struct.GlobalValue.html @@ -26,7 +26,7 @@
Example

source

pub fn get_comdat(self) -> Option<Comdat>

Gets a Comdat assigned to this GlobalValue, if any.

source

pub fn set_comdat(self, comdat: Comdat)

Assigns a Comdat to this GlobalValue.

source

pub fn get_unnamed_address(self) -> UnnamedAddress

source

pub fn set_unnamed_address(self, address: UnnamedAddress)

source

pub fn get_linkage(self) -> Linkage

source

pub fn set_linkage(self, linkage: Linkage)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for GlobalValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for GlobalValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for GlobalValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for GlobalValue<'ctx>

source§

fn clone(&self) -> GlobalValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for GlobalValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for GlobalValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> Hash for GlobalValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for GlobalValue<'ctx>

source§

fn clone(&self) -> GlobalValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for GlobalValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for GlobalValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> Hash for GlobalValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq for GlobalValue<'ctx>

source§

fn eq(&self, other: &GlobalValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always diff --git a/inkwell/values/struct.InstructionValue.html b/inkwell/values/struct.InstructionValue.html index 32de514852..992da69227 100644 --- a/inkwell/values/struct.InstructionValue.html +++ b/inkwell/values/struct.InstructionValue.html @@ -249,15 +249,15 @@
Safety
kind_id.

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for InstructionValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for InstructionValue<'_>

source§

impl Clone for InstructionValue<'_>

source§

fn clone(&self) -> Self

Creates a clone of this InstructionValue, and returns it. The clone will have no parent, and no name.

-
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for InstructionValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for InstructionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: InstructionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for InstructionValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for InstructionValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for InstructionValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: InstructionValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for InstructionValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for InstructionValue<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<InstructionValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for InstructionValue<'ctx>

source§

impl<'ctx> Eq for InstructionValue<'ctx>

source§

impl<'ctx> StructuralEq for InstructionValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for InstructionValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for InstructionValue<'ctx>

§

impl<'ctx> !Send for InstructionValue<'ctx>

§

impl<'ctx> !Sync for InstructionValue<'ctx>

§

impl<'ctx> Unpin for InstructionValue<'ctx>

§

impl<'ctx> UnwindSafe for InstructionValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq for InstructionValue<'ctx>

source§

fn eq(&self, other: &InstructionValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for InstructionValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for FloatValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for InstructionValue<'ctx>

source§

impl<'ctx> Eq for InstructionValue<'ctx>

source§

impl<'ctx> StructuralEq for InstructionValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for InstructionValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for InstructionValue<'ctx>

§

impl<'ctx> !Send for InstructionValue<'ctx>

§

impl<'ctx> !Sync for InstructionValue<'ctx>

§

impl<'ctx> Unpin for InstructionValue<'ctx>

§

impl<'ctx> UnwindSafe for InstructionValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.IntValue.html b/inkwell/values/struct.IntValue.html index 9f4fea56d5..56d6cc6405 100644 --- a/inkwell/values/struct.IntValue.html +++ b/inkwell/values/struct.IntValue.html @@ -61,23 +61,23 @@
Example
assert_eq!(i8_all_ones.get_sign_extended_constant(), Some(-1));
source

pub fn replace_all_uses_with(self, other: IntValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for IntValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for IntValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for IntValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for IntValue<'ctx>

source§

fn clone(&self) -> IntValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for IntValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for IntValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for IntValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for IntValue<'ctx>

source§

fn clone(&self) -> IntValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for IntValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for IntValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: IntValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for IntValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> IntMathValue<'ctx> for IntValue<'ctx>

§

type BaseType = IntType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> IntValue<'ctx>

source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for IntValue<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for IntValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for IntValue<'ctx>

source§

impl<'ctx> Eq for IntValue<'ctx>

source§

impl<'ctx> StructuralEq for IntValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for IntValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for IntValue<'ctx>

§

impl<'ctx> !Send for IntValue<'ctx>

§

impl<'ctx> !Sync for IntValue<'ctx>

§

impl<'ctx> Unpin for IntValue<'ctx>

§

impl<'ctx> UnwindSafe for IntValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq<IntValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for IntValue<'ctx>

source§

fn eq(&self, other: &IntValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for IntValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for IntValue<'ctx>

source§

impl<'ctx> Eq for IntValue<'ctx>

source§

impl<'ctx> StructuralEq for IntValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for IntValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for IntValue<'ctx>

§

impl<'ctx> !Send for IntValue<'ctx>

§

impl<'ctx> !Sync for IntValue<'ctx>

§

impl<'ctx> Unpin for IntValue<'ctx>

§

impl<'ctx> UnwindSafe for IntValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.MetadataValue.html b/inkwell/values/struct.MetadataValue.html index 14336d4236..f14c4d8b90 100644 --- a/inkwell/values/struct.MetadataValue.html +++ b/inkwell/values/struct.MetadataValue.html @@ -3,19 +3,19 @@
Safety

The ref must be valid and of type metadata.

source

pub fn get_name(&self) -> &CStr

Get name of the MetadataValue.

-
source

pub fn is_node(self) -> bool

source

pub fn is_string(self) -> bool

source

pub fn get_string_value(&self) -> Option<&CStr>

source

pub fn get_node_size(self) -> u32

source

pub fn get_node_values(self) -> Vec<BasicMetadataValueEnum<'ctx>>

source

pub fn print_to_stderr(self)

source

pub fn replace_all_uses_with(self, other: &MetadataValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for MetadataValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for MetadataValue<'_>

source§

impl<'ctx> Clone for MetadataValue<'ctx>

source§

fn clone(&self) -> MetadataValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MetadataValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for MetadataValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for MetadataValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

source

pub fn is_node(self) -> bool

source

pub fn is_string(self) -> bool

source

pub fn get_string_value(&self) -> Option<&CStr>

source

pub fn get_node_size(self) -> u32

source

pub fn get_node_values(self) -> Vec<BasicMetadataValueEnum<'ctx>>

source

pub fn print_to_stderr(self)

source

pub fn replace_all_uses_with(self, other: &MetadataValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for MetadataValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for MetadataValue<'_>

source§

impl<'ctx> Clone for MetadataValue<'ctx>

source§

fn clone(&self) -> MetadataValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MetadataValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for MetadataValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: MetadataValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for MetadataValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<MetadataValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for MetadataValue<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for MetadataValue<'ctx>

source§

fn eq(&self, other: &MetadataValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for MetadataValue<'ctx>

source§

impl<'ctx> Eq for MetadataValue<'ctx>

source§

impl<'ctx> StructuralEq for MetadataValue<'ctx>

source§

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> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for MetadataValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for MetadataValue<'ctx>

source§

impl<'ctx> Eq for MetadataValue<'ctx>

source§

impl<'ctx> StructuralEq for MetadataValue<'ctx>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.PhiValue.html b/inkwell/values/struct.PhiValue.html index be4479b8ac..fe58b0cd6a 100644 --- a/inkwell/values/struct.PhiValue.html +++ b/inkwell/values/struct.PhiValue.html @@ -20,13 +20,13 @@
Safety
return an empty string.

source

pub fn set_name(self, name: &str)

source

pub fn is_null(self) -> bool

source

pub fn is_undef(self) -> bool

source

pub fn as_instruction(self) -> InstructionValue<'ctx>

source

pub fn replace_all_uses_with(self, other: &PhiValue<'ctx>)

source

pub fn as_basic_value(self) -> BasicValueEnum<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for PhiValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for PhiValue<'_>

source§

impl<'ctx> Clone for PhiValue<'ctx>

source§

fn clone(&self) -> PhiValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for PhiValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PhiValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PhiValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for PhiValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PhiValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PhiValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PhiValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for PhiValue<'ctx>

source§

fn eq(&self, other: &PhiValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PhiValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PhiValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PhiValue<'ctx>

source§

impl<'ctx> Eq for PhiValue<'ctx>

source§

impl<'ctx> StructuralEq for PhiValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for PhiValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PhiValue<'ctx>

§

impl<'ctx> !Send for PhiValue<'ctx>

§

impl<'ctx> !Sync for PhiValue<'ctx>

§

impl<'ctx> Unpin for PhiValue<'ctx>

§

impl<'ctx> UnwindSafe for PhiValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq for PhiValue<'ctx>

source§

fn eq(&self, other: &PhiValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PhiValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PhiValue<'ctx>

source§

impl<'ctx> Eq for PhiValue<'ctx>

source§

impl<'ctx> StructuralEq for PhiValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for PhiValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PhiValue<'ctx>

§

impl<'ctx> !Send for PhiValue<'ctx>

§

impl<'ctx> !Sync for PhiValue<'ctx>

§

impl<'ctx> Unpin for PhiValue<'ctx>

§

impl<'ctx> UnwindSafe for PhiValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.PointerValue.html b/inkwell/values/struct.PointerValue.html index 9ef716457f..07b57e2a48 100644 --- a/inkwell/values/struct.PointerValue.html +++ b/inkwell/values/struct.PointerValue.html @@ -26,23 +26,23 @@
Example
self, ptr_type: PointerType<'ctx> ) -> PointerValue<'ctx>
source

pub fn replace_all_uses_with(self, other: PointerValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for PointerValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for PointerValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for PointerValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for PointerValue<'ctx>

source§

fn clone(&self) -> PointerValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for PointerValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PointerValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for PointerValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for PointerValue<'ctx>

source§

fn clone(&self) -> PointerValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for PointerValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PointerValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: PointerValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for PointerValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> IntMathValue<'ctx> for PointerValue<'ctx>

§

type BaseType = IntType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> PointerValue<'ctx>

source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for PointerValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for PointerValue<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<PointerValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for PointerValue<'ctx>

source§

fn eq(&self, other: &PointerValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PointerMathValue<'ctx> for PointerValue<'ctx>

§

type BaseType = PointerType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> PointerValue<'ctx>

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PointerValue<'ctx>

source§

impl<'ctx> Eq for PointerValue<'ctx>

source§

impl<'ctx> StructuralEq for PointerValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for PointerValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PointerValue<'ctx>

§

impl<'ctx> !Send for PointerValue<'ctx>

§

impl<'ctx> !Sync for PointerValue<'ctx>

§

impl<'ctx> Unpin for PointerValue<'ctx>

§

impl<'ctx> UnwindSafe for PointerValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PointerMathValue<'ctx> for PointerValue<'ctx>

§

type BaseType = PointerType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> PointerValue<'ctx>

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<InstructionValue<'ctx>> for PointerValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: InstructionValue<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for PointerValue<'ctx>

source§

impl<'ctx> Eq for PointerValue<'ctx>

source§

impl<'ctx> StructuralEq for PointerValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for PointerValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for PointerValue<'ctx>

§

impl<'ctx> !Send for PointerValue<'ctx>

§

impl<'ctx> !Sync for PointerValue<'ctx>

§

impl<'ctx> Unpin for PointerValue<'ctx>

§

impl<'ctx> UnwindSafe for PointerValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.StructValue.html b/inkwell/values/struct.StructValue.html index d32901d9ab..7c486f39cc 100644 --- a/inkwell/values/struct.StructValue.html +++ b/inkwell/values/struct.StructValue.html @@ -48,27 +48,27 @@
Safety
return an empty string.

source

pub fn set_name(&self, name: &str)

Get name of the StructValue.

source

pub fn get_type(self) -> StructType<'ctx>

source

pub fn is_null(self) -> bool

source

pub fn is_undef(self) -> bool

source

pub fn print_to_stderr(self)

source

pub fn as_instruction(self) -> Option<InstructionValue<'ctx>>

source

pub fn replace_all_uses_with(self, other: StructValue<'ctx>)

Trait Implementations§

source§

impl<'ctx> AggregateValue<'ctx> for StructValue<'ctx>

source§

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>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for StructValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for StructValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for StructValue<'ctx>

source§

fn clone(&self) -> StructValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for StructValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StructValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for StructValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for StructValue<'ctx>

source§

fn clone(&self) -> StructValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for StructValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StructValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AggregateValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: StructValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for StructValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for StructValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AggregateValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for StructValue<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<StructValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for StructValue<'ctx>

source§

impl<'ctx> Eq for StructValue<'ctx>

source§

impl<'ctx> StructuralEq for StructValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for StructValue<'ctx>

Auto Trait Implementations§

§

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> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq for StructValue<'ctx>

source§

fn eq(&self, other: &StructValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for StructValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for StructValue<'ctx>

source§

impl<'ctx> Eq for StructValue<'ctx>

source§

impl<'ctx> StructuralEq for StructValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for StructValue<'ctx>

Auto Trait Implementations§

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/inkwell/values/struct.VectorValue.html b/inkwell/values/struct.VectorValue.html index c4cb703b86..a56245f59c 100644 --- a/inkwell/values/struct.VectorValue.html +++ b/inkwell/values/struct.VectorValue.html @@ -27,23 +27,23 @@
Example
right: VectorValue<'ctx>, mask: VectorValue<'ctx> ) -> VectorValue<'ctx>

Trait Implementations§

source§

impl<'ctx> AnyValue<'ctx> for VectorValue<'ctx>

source§

fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>

Returns an enum containing a typed version of AnyValue.
source§

fn print_to_string(&self) -> LLVMString

Prints a value to a LLVMString
source§

fn is_poison(&self) -> bool

Returns whether the value is poison
source§

impl AsValueRef for VectorValue<'_>

source§

impl<'ctx> BasicValue<'ctx> for VectorValue<'ctx>

source§

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>>

Most BasicValues are the byproduct of an instruction -and so are convertible into an InstructionValue
source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for VectorValue<'ctx>

source§

fn clone(&self) -> VectorValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VectorValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VectorValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> From<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for VectorValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +and so are convertible into an InstructionValue

source§

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source§

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.
source§

impl<'ctx> Clone for VectorValue<'ctx>

source§

fn clone(&self) -> VectorValue<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for VectorValue<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VectorValue<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> FloatMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> From<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> AnyValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicMetadataValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn from(value: VectorValue<'_>) -> BasicValueEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> Hash for VectorValue<'ctx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> IntMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'ctx> IntMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for VectorValue<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for VectorValue<'ctx>

source§

fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PointerMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for VectorValue<'ctx>

source§

impl<'ctx> Eq for VectorValue<'ctx>

source§

impl<'ctx> StructuralEq for VectorValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for VectorValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for VectorValue<'ctx>

§

impl<'ctx> !Send for VectorValue<'ctx>

§

impl<'ctx> !Sync for VectorValue<'ctx>

§

impl<'ctx> Unpin for VectorValue<'ctx>

§

impl<'ctx> UnwindSafe for VectorValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for AnyValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq<VectorValue<'ctx>> for BasicValueEnum<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PartialEq for VectorValue<'ctx>

source§

fn eq(&self, other: &VectorValue<'ctx>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> PointerMathValue<'ctx> for VectorValue<'ctx>

§

type BaseType = VectorType<'ctx>

source§

unsafe fn new(value: LLVMValueRef) -> VectorValue<'ctx>

source§

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for VectorValue<'ctx>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicValueEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for VectorValue<'ctx>

source§

impl<'ctx> Eq for VectorValue<'ctx>

source§

impl<'ctx> StructuralEq for VectorValue<'ctx>

source§

impl<'ctx> StructuralPartialEq for VectorValue<'ctx>

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for VectorValue<'ctx>

§

impl<'ctx> !Send for VectorValue<'ctx>

§

impl<'ctx> !Sync for VectorValue<'ctx>

§

impl<'ctx> Unpin for VectorValue<'ctx>

§

impl<'ctx> UnwindSafe for VectorValue<'ctx>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/lalrpop_util/lexer/struct.Token.html b/lalrpop_util/lexer/struct.Token.html index d20302d2db..00d51ba493 100644 --- a/lalrpop_util/lexer/struct.Token.html +++ b/lalrpop_util/lexer/struct.Token.html @@ -1,5 +1,5 @@ Token in lalrpop_util::lexer - Rust -

Struct lalrpop_util::lexer::Token

source ·
pub struct Token<'input>(pub usize, pub &'input str);

Tuple Fields§

§0: usize§1: &'input str

Trait Implementations§

source§

impl<'input> Clone for Token<'input>

source§

fn clone(&self) -> Token<'input>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'input> Debug for Token<'input>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Display for Token<'a>

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'input> Ord for Token<'input>

source§

fn cmp(&self, other: &Token<'input>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +

Struct lalrpop_util::lexer::Token

source ·
pub struct Token<'input>(pub usize, pub &'input str);

Tuple Fields§

§0: usize§1: &'input str

Trait Implementations§

source§

impl<'input> Clone for Token<'input>

source§

fn clone(&self) -> Token<'input>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'input> Debug for Token<'input>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Display for Token<'a>

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'input> Ord for Token<'input>

source§

fn cmp(&self, other: &Token<'input>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<'input> PartialEq for Token<'input>

source§

fn eq(&self, other: &Token<'input>) -> bool

This method tests for self and other values to be equal, and is used diff --git a/regex/bytes/struct.Match.html b/regex/bytes/struct.Match.html index ae2bad2091..afcc117bd0 100644 --- a/regex/bytes/struct.Match.html +++ b/regex/bytes/struct.Match.html @@ -58,7 +58,7 @@

Example

source

pub fn range(&self) -> Range<usize>

Returns the range over the starting and ending byte offsets of the match in the haystack.

source

pub fn as_bytes(&self) -> &'h [u8]

Returns the substring of the haystack that matched.

-

Trait Implementations§

source§

impl<'h> Clone for Match<'h>

source§

fn clone(&self) -> Match<'h>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'h> Debug for Match<'h>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'h> From<Match<'h>> for &'h [u8]

source§

fn from(m: Match<'h>) -> &'h [u8]

Converts to this type from the input type.
source§

impl<'h> From<Match<'h>> for Range<usize>

source§

fn from(m: Match<'h>) -> Range<usize>

Converts to this type from the input type.
source§

impl<'h> PartialEq for Match<'h>

source§

fn eq(&self, other: &Match<'h>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl<'h> Clone for Match<'h>

source§

fn clone(&self) -> Match<'h>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'h> Debug for Match<'h>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'h> From<Match<'h>> for &'h [u8]

source§

fn from(m: Match<'h>) -> &'h [u8]

Converts to this type from the input type.
source§

impl<'h> From<Match<'h>> for Range<usize>

source§

fn from(m: Match<'h>) -> Range<usize>

Converts to this type from the input type.
source§

impl<'h> PartialEq for Match<'h>

source§

fn eq(&self, other: &Match<'h>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'h> Copy for Match<'h>

source§

impl<'h> Eq for Match<'h>

source§

impl<'h> StructuralEq for Match<'h>

source§

impl<'h> StructuralPartialEq for Match<'h>

Auto Trait Implementations§

§

impl<'h> RefUnwindSafe for Match<'h>

§

impl<'h> Send for Match<'h>

§

impl<'h> Sync for Match<'h>

§

impl<'h> Unpin for Match<'h>

§

impl<'h> UnwindSafe for Match<'h>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/regex/struct.Regex.html b/regex/struct.Regex.html index 723195364f..c9b06737c8 100644 --- a/regex/struct.Regex.html +++ b/regex/struct.Regex.html @@ -913,8 +913,8 @@
Example
assert_eq!(locs.get(1), Some((0, 1))); assert_eq!(locs.get(2), Some((1, 2))); assert_eq!(locs.get(3), Some((2, 6)));
-

Trait Implementations§

source§

impl Clone for Regex

source§

fn clone(&self) -> Regex

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Regex

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Shows the original regular expression.

-
source§

impl Display for Regex

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Shows the original regular expression.

+

Trait Implementations§

source§

impl Clone for Regex

source§

fn clone(&self) -> Regex

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Regex

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Shows the original regular expression.

+
source§

impl Display for Regex

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Shows the original regular expression.

source§

impl FromStr for Regex

source§

fn from_str(s: &str) -> Result<Regex, Error>

Attempts to parse a string into a regular expression

§

type Err = Error

The associated error which can be returned from parsing.
source§

impl TryFrom<&str> for Regex

source§

fn try_from(s: &str) -> Result<Regex, Error>

Attempts to parse a string into a regular expression

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl TryFrom<String> for Regex

source§

fn try_from(s: String) -> Result<Regex, Error>

Attempts to parse a string into a regular expression

diff --git a/regex_automata/all.html b/regex_automata/all.html index 74ce35b3df..9cc72afee7 100644 --- a/regex_automata/all.html +++ b/regex_automata/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate

List of all items

Structs

Enums

Functions

\ No newline at end of file diff --git a/regex_automata/enum.Anchored.html b/regex_automata/enum.Anchored.html index e2bc3408a1..e8cb0bcb82 100644 --- a/regex_automata/enum.Anchored.html +++ b/regex_automata/enum.Anchored.html @@ -1,4 +1,4 @@ -Anchored in regex_automata - Rust +Anchored in regex_automata - Rust
pub enum Anchored {
     No,
     Yes,
diff --git a/regex_automata/enum.MatchErrorKind.html b/regex_automata/enum.MatchErrorKind.html
index a3638a197b..118ca2e184 100644
--- a/regex_automata/enum.MatchErrorKind.html
+++ b/regex_automata/enum.MatchErrorKind.html
@@ -1,4 +1,4 @@
-MatchErrorKind in regex_automata - Rust
+MatchErrorKind in regex_automata - Rust
     
#[non_exhaustive]
pub enum MatchErrorKind { Quit { byte: u8, diff --git a/regex_automata/enum.MatchKind.html b/regex_automata/enum.MatchKind.html index 6448598e6d..c5bb504bcb 100644 --- a/regex_automata/enum.MatchKind.html +++ b/regex_automata/enum.MatchKind.html @@ -1,4 +1,4 @@ -MatchKind in regex_automata - Rust +MatchKind in regex_automata - Rust
#[non_exhaustive]
pub enum MatchKind { All, LeftmostFirst, diff --git a/regex_automata/hybrid/dfa/index.html b/regex_automata/hybrid/dfa/index.html index 6714b705d1..f86d3d80d1 100644 --- a/regex_automata/hybrid/dfa/index.html +++ b/regex_automata/hybrid/dfa/index.html @@ -1,4 +1,4 @@ -regex_automata::hybrid::dfa - Rust +regex_automata::hybrid::dfa - Rust

Module regex_automata::hybrid::dfa

source ·
Expand description

Types and routines specific to lazy DFAs.

This module is the home of hybrid::dfa::DFA.

This module also contains a hybrid::dfa::Builder and a diff --git a/regex_automata/hybrid/dfa/struct.Builder.html b/regex_automata/hybrid/dfa/struct.Builder.html index 923fb3c82c..86d67e8d7d 100644 --- a/regex_automata/hybrid/dfa/struct.Builder.html +++ b/regex_automata/hybrid/dfa/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in regex_automata::hybrid::dfa - Rust

+Builder in regex_automata::hybrid::dfa - Rust
pub struct Builder { /* private fields */ }
Expand description

A builder for constructing a lazy deterministic finite automaton from regular expressions.

As a convenience, DFA::builder is an alias for Builder::new. The diff --git a/regex_automata/hybrid/dfa/struct.Cache.html b/regex_automata/hybrid/dfa/struct.Cache.html index c4bf5d03df..6011794899 100644 --- a/regex_automata/hybrid/dfa/struct.Cache.html +++ b/regex_automata/hybrid/dfa/struct.Cache.html @@ -1,4 +1,4 @@ -Cache in regex_automata::hybrid::dfa - Rust

+Cache in regex_automata::hybrid::dfa - Rust
pub struct Cache { /* private fields */ }
Expand description

A cache represents a partially computed DFA.

A cache is the key component that differentiates a classical DFA and a hybrid NFA/DFA (also called a “lazy DFA”). Where a classical DFA builds a diff --git a/regex_automata/hybrid/dfa/struct.Config.html b/regex_automata/hybrid/dfa/struct.Config.html index c30c84ea42..ff79222710 100644 --- a/regex_automata/hybrid/dfa/struct.Config.html +++ b/regex_automata/hybrid/dfa/struct.Config.html @@ -1,4 +1,4 @@ -Config in regex_automata::hybrid::dfa - Rust

+Config in regex_automata::hybrid::dfa - Rust
pub struct Config { /* private fields */ }
Expand description

The configuration used for building a lazy DFA.

As a convenience, DFA::config is an alias for Config::new. The advantage of the former is that it often lets you avoid importing the diff --git a/regex_automata/hybrid/dfa/struct.DFA.html b/regex_automata/hybrid/dfa/struct.DFA.html index 15d20a8015..6f4216da5d 100644 --- a/regex_automata/hybrid/dfa/struct.DFA.html +++ b/regex_automata/hybrid/dfa/struct.DFA.html @@ -1,4 +1,4 @@ -DFA in regex_automata::hybrid::dfa - Rust

+DFA in regex_automata::hybrid::dfa - Rust

Struct regex_automata::hybrid::dfa::DFA

source ·
pub struct DFA { /* private fields */ }
Expand description

A hybrid NFA/DFA (also called a “lazy DFA”) for regex searching.

A lazy DFA is a DFA that builds itself at search time. It otherwise has very similar characteristics as a dense::DFA. diff --git a/regex_automata/hybrid/dfa/struct.OverlappingState.html b/regex_automata/hybrid/dfa/struct.OverlappingState.html index 44ecd55322..a8abd557e9 100644 --- a/regex_automata/hybrid/dfa/struct.OverlappingState.html +++ b/regex_automata/hybrid/dfa/struct.OverlappingState.html @@ -1,4 +1,4 @@ -OverlappingState in regex_automata::hybrid::dfa - Rust

+OverlappingState in regex_automata::hybrid::dfa - Rust
pub struct OverlappingState { /* private fields */ }
Expand description

Represents the current state of an overlapping search.

This is used for overlapping searches since they need to know something about the previous search. For example, when multiple patterns match at the diff --git a/regex_automata/hybrid/enum.StartError.html b/regex_automata/hybrid/enum.StartError.html index ee4eb08adf..5d9d97cb27 100644 --- a/regex_automata/hybrid/enum.StartError.html +++ b/regex_automata/hybrid/enum.StartError.html @@ -1,4 +1,4 @@ -StartError in regex_automata::hybrid - Rust

+StartError in regex_automata::hybrid - Rust
#[non_exhaustive]
pub enum StartError { Cache { err: CacheError, @@ -32,7 +32,7 @@
§

UnsupportedAnchored

Fields

§mode: Anchored

The anchored mode given that is unsupported.

An error that occurs when the caller requests an anchored mode that isn’t supported by the DFA.

-

Trait Implementations§

source§

impl Clone for StartError

source§

fn clone(&self) -> StartError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StartError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StartError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StartError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Clone for StartError

source§

fn clone(&self) -> StartError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StartError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StartError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StartError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/regex_automata/hybrid/index.html b/regex_automata/hybrid/index.html index d6ccf45fce..059d14c75b 100644 --- a/regex_automata/hybrid/index.html +++ b/regex_automata/hybrid/index.html @@ -1,4 +1,4 @@ -regex_automata::hybrid - Rust +regex_automata::hybrid - Rust

Module regex_automata::hybrid

source ·
Expand description

A module for building and searching with lazy deterministic finite automata (DFAs).

Like other modules in this crate, lazy DFAs support a rich regex syntax with diff --git a/regex_automata/hybrid/regex/index.html b/regex_automata/hybrid/regex/index.html index 019c526186..9543789831 100644 --- a/regex_automata/hybrid/regex/index.html +++ b/regex_automata/hybrid/regex/index.html @@ -1,4 +1,4 @@ -regex_automata::hybrid::regex - Rust

+regex_automata::hybrid::regex - Rust
Expand description

A lazy DFA backed Regex.

This module provides a Regex backed by a lazy DFA. A Regex implements convenience routines you might have come to expect, such as finding a match diff --git a/regex_automata/hybrid/regex/struct.Builder.html b/regex_automata/hybrid/regex/struct.Builder.html index 57d70459bc..a9fd56f5f8 100644 --- a/regex_automata/hybrid/regex/struct.Builder.html +++ b/regex_automata/hybrid/regex/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in regex_automata::hybrid::regex - Rust

+Builder in regex_automata::hybrid::regex - Rust
pub struct Builder { /* private fields */ }
Expand description

A builder for a regex based on a hybrid NFA/DFA.

This builder permits configuring options for the syntax of a pattern, the NFA construction, the lazy DFA construction and finally the regex searching diff --git a/regex_automata/hybrid/regex/struct.Cache.html b/regex_automata/hybrid/regex/struct.Cache.html index 45b7761801..be60cf1e85 100644 --- a/regex_automata/hybrid/regex/struct.Cache.html +++ b/regex_automata/hybrid/regex/struct.Cache.html @@ -1,4 +1,4 @@ -Cache in regex_automata::hybrid::regex - Rust

+Cache in regex_automata::hybrid::regex - Rust
pub struct Cache { /* private fields */ }
Expand description

A cache represents a partially computed forward and reverse DFA.

A cache is the key component that differentiates a classical DFA and a hybrid NFA/DFA (also called a “lazy DFA”). Where a classical DFA builds a diff --git a/regex_automata/hybrid/regex/struct.FindMatches.html b/regex_automata/hybrid/regex/struct.FindMatches.html index 1eef173bfd..b9daea8739 100644 --- a/regex_automata/hybrid/regex/struct.FindMatches.html +++ b/regex_automata/hybrid/regex/struct.FindMatches.html @@ -1,4 +1,4 @@ -FindMatches in regex_automata::hybrid::regex - Rust

+FindMatches in regex_automata::hybrid::regex - Rust
pub struct FindMatches<'r, 'c, 'h> { /* private fields */ }
Expand description

An iterator over all non-overlapping matches for an infallible search.

The iterator yields a Match value until no more matches could be found. If the underlying regex engine returns an error, then a panic occurs.

diff --git a/regex_automata/hybrid/regex/struct.Regex.html b/regex_automata/hybrid/regex/struct.Regex.html index 343e5bd430..120ee886b1 100644 --- a/regex_automata/hybrid/regex/struct.Regex.html +++ b/regex_automata/hybrid/regex/struct.Regex.html @@ -1,4 +1,4 @@ -Regex in regex_automata::hybrid::regex - Rust +Regex in regex_automata::hybrid::regex - Rust
pub struct Regex { /* private fields */ }
Expand description

A regular expression that uses hybrid NFA/DFAs (also called “lazy DFAs”) for searching.

A regular expression is comprised of two lazy DFAs, a “forward” DFA and a diff --git a/regex_automata/hybrid/struct.BuildError.html b/regex_automata/hybrid/struct.BuildError.html index 8119fc530d..1b5b04da47 100644 --- a/regex_automata/hybrid/struct.BuildError.html +++ b/regex_automata/hybrid/struct.BuildError.html @@ -1,4 +1,4 @@ -BuildError in regex_automata::hybrid - Rust

+BuildError in regex_automata::hybrid - Rust
pub struct BuildError { /* private fields */ }
Expand description

An error that occurs when initial construction of a lazy DFA fails.

A build error can occur when insufficient cache capacity is configured or if something about the NFA is unsupported. (For example, if one attempts diff --git a/regex_automata/hybrid/struct.CacheError.html b/regex_automata/hybrid/struct.CacheError.html index af6c8e3842..4816b93564 100644 --- a/regex_automata/hybrid/struct.CacheError.html +++ b/regex_automata/hybrid/struct.CacheError.html @@ -1,4 +1,4 @@ -CacheError in regex_automata::hybrid - Rust

+CacheError in regex_automata::hybrid - Rust
pub struct CacheError(/* private fields */);
Expand description

An error that occurs when cache usage has become inefficient.

One of the weaknesses of a lazy DFA is that it may need to clear its cache repeatedly if it’s not big enough. If this happens too much, then it @@ -13,7 +13,7 @@ dfa::Config::minimum_bytes_per_state.

When the std feature is enabled, this implements the std::error::Error trait.

-

Trait Implementations§

source§

impl Clone for CacheError

source§

fn clone(&self) -> CacheError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CacheError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CacheError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CacheError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Clone for CacheError

source§

fn clone(&self) -> CacheError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CacheError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CacheError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CacheError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/regex_automata/hybrid/struct.LazyStateID.html b/regex_automata/hybrid/struct.LazyStateID.html index a2e9c4eefb..f12ccc0144 100644 --- a/regex_automata/hybrid/struct.LazyStateID.html +++ b/regex_automata/hybrid/struct.LazyStateID.html @@ -1,4 +1,4 @@ -LazyStateID in regex_automata::hybrid - Rust +LazyStateID in regex_automata::hybrid - Rust
pub struct LazyStateID(/* private fields */);
Expand description

A state identifier specifically tailored for lazy DFAs.

A lazy state ID logically represents a pointer to a DFA state. In practice, by limiting the number of DFA states it can address, it reserves some diff --git a/regex_automata/index.html b/regex_automata/index.html index 273b6db48c..0b3694893f 100644 --- a/regex_automata/index.html +++ b/regex_automata/index.html @@ -1,4 +1,4 @@ -regex_automata - Rust