diff --git a/backtrace/enum.BytesOrWideString.html b/backtrace/enum.BytesOrWideString.html index 5f92bb8bf..cdd61d777 100644 --- a/backtrace/enum.BytesOrWideString.html +++ b/backtrace/enum.BytesOrWideString.html @@ -16,7 +16,7 @@ enabled, and the std feature is enabled by default.

Required 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 99bd6d68b..6b8cbcc63 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 927f8347c..c696788ac 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 @@ flag control an application-specific type:

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 90cf45b25..f4e96389d 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 96849b7c8..2404ecf7c 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 cb9462c5f..5c7bdfc40 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 9c60ccfe0..af5cf6faf 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 1fad3c8c8..c4d11b85b 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 61a73ccf9..c3444bc45 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 975722ed6..76128a391 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 59b016e64..4a6634dcc 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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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<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 for OsStr

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<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 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 20a293504..d4e25a05d 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 70ff87fd4..9ff3734c2 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 006bbed18..a40d1933a 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 cf46119e4..06fb1f17a 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 @@ operator. 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 d7ec82384..170375bff 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 2e703c66a..a177701a2 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 84ff068d2..5003e3d1d 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 c71565701..cfe5b188a 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 65ed17fdd..7ed7014af 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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 92d7764a5..7209d8a21 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 @@ 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 2c185f031..500580a70 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 30149cd9f..2ca365847 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 9e726655d..676cb8782 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 2204d88f9..19df5b538 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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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<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 +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 for OsStr

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 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<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 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 beb717119..b8b29909d 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 f7b48783f..988563540 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 5b9c7d12f..c6eea09c8 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 06bcb38ed..c4b497822 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 &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 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 +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<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<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 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<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 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 +by ==.
1.0.0 · source§

fn ne(&self, other: &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 c7d290326..134813896 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

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 df3469a18..c4884eb65 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 73422942e..3c481817c 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 6344e4597..87ecd5c24 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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 @@ applications like errors and completion.

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 fd25a658a..6f44b53a0 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 @@ 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 21a61ba4b..e4c6d4c12 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 c14ceea1d..6466f0df6 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 552713430..75a0a59aa 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 d8ea1eac9..bf101894f 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

assert_eq!(string.print_to_string().to_string(), "[9 x i8] c\"my_string\"");

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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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<'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 +
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<'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 641bcde57..4294f7442 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 5122b06b1..b34915ebc 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 cdba6f811..f84fcb37f 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 8c5c3ee4f..63d228ce3 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 f060afee7..c096e62dd 100644 --- a/inkwell/types/enum.BasicTypeEnum.html +++ b/inkwell/types/enum.BasicTypeEnum.html @@ -30,9 +30,9 @@ 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 1e0c3d042..01570de82 100644 --- a/inkwell/types/struct.ArrayType.html +++ b/inkwell/types/struct.ArrayType.html @@ -139,9 +139,9 @@ 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 8850999dd..fdb58373d 100644 --- a/inkwell/types/struct.FloatType.html +++ b/inkwell/types/struct.FloatType.html @@ -164,7 +164,7 @@ so this may produce unexpected results and should not be relied upon for validat ) -> 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 db6c2f0b8..cf1d999aa 100644 --- a/inkwell/types/struct.IntType.html +++ b/inkwell/types/struct.IntType.html @@ -191,9 +191,9 @@ so this may produce unexpected results and should not be relied upon for validat 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 24c109339..4d650697a 100644 --- a/inkwell/types/struct.PointerType.html +++ b/inkwell/types/struct.PointerType.html @@ -167,9 +167,9 @@ so this function may be removed in the future.

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 5e8d4d941..0607fe363 100644 --- a/inkwell/types/struct.StructType.html +++ b/inkwell/types/struct.StructType.html @@ -211,7 +211,7 @@ opaque_struct_type.set_body(&[f32_type.into()], 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 078b565db..bda623ec5 100644 --- a/inkwell/types/struct.VectorType.html +++ b/inkwell/types/struct.VectorType.html @@ -157,9 +157,9 @@ 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 da73de979..6a909e360 100644 --- a/inkwell/types/struct.VoidType.html +++ b/inkwell/types/struct.VoidType.html @@ -34,7 +34,7 @@ This means the function does not return.

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 0c4175df2..eac44e122 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 29d98d4de..4d0a29982 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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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 +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<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<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 +by ==.
1.0.0 · source§

fn ne(&self, other: &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 +by ==.
1.0.0 · source§

fn ne(&self, other: &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<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 d2e474706..b4b6774ea 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 f96139e5d..f4c7a7f47 100644 --- a/inkwell/values/enum.BasicValueEnum.html +++ b/inkwell/values/enum.BasicValueEnum.html @@ -12,35 +12,35 @@
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 add4ab87d..ff388689c 100644 --- a/inkwell/values/struct.ArrayValue.html +++ b/inkwell/values/struct.ArrayValue.html @@ -43,27 +43,27 @@ if the value points to a constant string.

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 21e701c8b..d04f59158 100644 --- a/inkwell/values/struct.CallSiteValue.html +++ b/inkwell/values/struct.CallSiteValue.html @@ -323,7 +323,7 @@ builder.position_at_end(entry_bb); 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 acbe7d83a..7999d70eb 100644 --- a/inkwell/values/struct.FloatValue.html +++ b/inkwell/values/struct.FloatValue.html @@ -28,23 +28,23 @@ return an empty string.

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 1c2ee968e..693590afa 100644 --- a/inkwell/values/struct.FunctionValue.html +++ b/inkwell/values/struct.FunctionValue.html @@ -127,14 +127,14 @@ a PointerValue.

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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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 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 + 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 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 b3acfacaf..8a89ed537 100644 --- a/inkwell/values/struct.GlobalValue.html +++ b/inkwell/values/struct.GlobalValue.html @@ -26,7 +26,7 @@ context.append_basic_block(fn_value, "entry");

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 32de51485..992da6922 100644 --- a/inkwell/values/struct.InstructionValue.html +++ b/inkwell/values/struct.InstructionValue.html @@ -249,15 +249,15 @@ this gives the olt.

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 9f4fea56d..56d6cc640 100644 --- a/inkwell/values/struct.IntValue.html +++ b/inkwell/values/struct.IntValue.html @@ -61,23 +61,23 @@ example the address of a function casted to an integer.

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 14336d423..f14c4d8b9 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 be4479b8a..fe58b0cd6 100644 --- a/inkwell/values/struct.PhiValue.html +++ b/inkwell/values/struct.PhiValue.html @@ -20,13 +20,13 @@ the Phi’s containing basic block.

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 9ef716457..07b57e2a4 100644 --- a/inkwell/values/struct.PointerValue.html +++ b/inkwell/values/struct.PointerValue.html @@ -26,23 +26,23 @@ will return an empty string.

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 -by ==.
1.0.0 · source§

fn ne(&self, other: &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 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 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 +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> 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> 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 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 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 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 d32901d9a..7c486f39c 100644 --- a/inkwell/values/struct.StructValue.html +++ b/inkwell/values/struct.StructValue.html @@ -48,27 +48,27 @@ 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 c4cb703b8..a56245f59 100644 --- a/inkwell/values/struct.VectorValue.html +++ b/inkwell/values/struct.VectorValue.html @@ -27,23 +27,23 @@ return an empty string.

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 d20302d2d..00d51ba49 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 ae2bad209..afcc117bd 100644 --- a/regex/bytes/struct.Match.html +++ b/regex/bytes/struct.Match.html @@ -58,7 +58,7 @@ all match the empty string: ^, ^$, \b,
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 723195364..c9b06737c 100644 --- a/regex/struct.Regex.html +++ b/regex/struct.Regex.html @@ -913,8 +913,8 @@ other regexes, even if they have the same number of capture groups.

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 74ce35b3d..9cc72afee 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 e2bc3408a..e8cb0bcb8 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 a3638a197..118ca2e18 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 6448598e6..c5bb504bc 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 6714b705d..f86d3d80d 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 923fb3c82..86d67e8d7 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 c4bf5d03d..601179489 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 c30c84ea4..ff7922271 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 15d20a801..6f4216da5 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 44ecd5532..a8abd557e 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 ee4eb08ad..5d9d97cb2 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 @@ is in this DFA’s quit set.

§

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 d6ccf45fc..059d14c75 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 019c52618..954378983 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 57d70459b..a9fd56f5f 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 45b776180..be60cf1e8 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 1eef173bf..b9daea873 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 343e5bd43..120ee886b 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 8119fc530..1b5b04da4 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 af6c8e384..4816b9356 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 @@ and 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 a2e9c4eef..f12ccc014 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 273b6db48..0b3694893 100644 --- a/regex_automata/index.html +++ b/regex_automata/index.html @@ -1,4 +1,4 @@ -regex_automata - Rust