Skip to main content

LegacyOCamlPhase

Enum LegacyOCamlPhase 

Source
pub enum LegacyOCamlPhase {
Show 41 variants AndMutDefsite, BundleCycles, CfIntoMonads, DirectAndMut, DropBlocks, DropMatchGuards, DropReferences, DropReturnBreakContinue, DropSizedTrait, ExplicitConversions, FunctionalizeLoops, HoistDisjunctivePatterns, LocalMutation, NewtypeAsRefinement, ReconstructAsserts, ReconstructForIndexLoops, ReconstructForLoops, ReconstructQuestionMarks, ReconstructWhileLoops, ReorderFields, RewriteControlFlow, RewriteLocalSelf, SimplifyHoisting, SimplifyMatchReturn, SimplifyQuestionMarks, SortItems, Specialize, TraitsSpecs, TransformHaxLibInline, TrivializeAssignLhs, RejectArbitraryLhs, RejectContinue, RejectQuestionMark, RejectRawOrMutPointer, RejectEarlyExit, RejectAsPattern, RejectDyn, RejectTraitItemDefault, RejectUnsafe, RejectImplTypeMethod, HoistSideEffects,
}
Expand description

The list of exposed OCaml phases.

Variants§

§

AndMutDefsite

The phase and_mut_defsite from the OCaml engine.

§

BundleCycles

The phase bundle_cycles from the OCaml engine.

§

CfIntoMonads

The phase cf_into_monads from the OCaml engine.

§

DirectAndMut

The phase direct_and_mut from the OCaml engine.

§

DropBlocks

The phase drop_blocks from the OCaml engine.

§

DropMatchGuards

The phase drop_match_guards from the OCaml engine.

§

DropReferences

The phase drop_references from the OCaml engine.

§

DropReturnBreakContinue

The phase drop_return_break_continue from the OCaml engine.

§

DropSizedTrait

The phase drop_sized_trait from the OCaml engine.

§

ExplicitConversions

The phase explicit_conversions from the OCaml engine.

§

FunctionalizeLoops

The phase functionalize_loops from the OCaml engine.

§

HoistDisjunctivePatterns

The phase hoist_disjunctive_patterns from the OCaml engine.

§

LocalMutation

The phase local_mutation from the OCaml engine.

§

NewtypeAsRefinement

The phase newtype_as_refinement from the OCaml engine.

§

ReconstructAsserts

The phase reconstruct_asserts from the OCaml engine.

§

ReconstructForIndexLoops

The phase reconstruct_for_index_loops from the OCaml engine.

§

ReconstructForLoops

The phase reconstruct_for_loops from the OCaml engine.

§

ReconstructQuestionMarks

The phase reconstruct_question_marks from the OCaml engine.

§

ReconstructWhileLoops

The phase reconstruct_while_loops from the OCaml engine.

§

ReorderFields

The phase reorder_fields from the OCaml engine.

§

RewriteControlFlow

The phase rewrite_control_flow from the OCaml engine.

§

RewriteLocalSelf

The phase rewrite_local_self from the OCaml engine.

§

SimplifyHoisting

The phase simplify_hoisting from the OCaml engine.

§

SimplifyMatchReturn

The phase simplify_match_return from the OCaml engine.

§

SimplifyQuestionMarks

The phase simplify_question_marks from the OCaml engine.

§

SortItems

The phase sort_items from the OCaml engine.

§

Specialize

The phase specialize from the OCaml engine.

§

TraitsSpecs

The phase traits_specs from the OCaml engine.

§

TransformHaxLibInline

The phase transform_hax_lib_inline from the OCaml engine.

§

TrivializeAssignLhs

The phase trivialize_assign_lhs from the OCaml engine.

§

RejectArbitraryLhs

The phase reject_arbitrary_lhs from the OCaml engine.

§

RejectContinue

The phase reject_continue from the OCaml engine.

§

RejectQuestionMark

The phase reject_question_mark from the OCaml engine.

§

RejectRawOrMutPointer

The phase reject_raw_or_mut_pointer from the OCaml engine.

§

RejectEarlyExit

The phase reject_early_exit from the OCaml engine.

§

RejectAsPattern

The phase reject_as_pattern from the OCaml engine.

§

RejectDyn

The phase reject_dyn from the OCaml engine.

§

RejectTraitItemDefault

The phase reject_trait_item_default from the OCaml engine.

§

RejectUnsafe

The phase reject_unsafe from the OCaml engine.

§

RejectImplTypeMethod

The phase reject_impl_type_method from the OCaml engine.

§

HoistSideEffects

The phase hoist_side_effects from the OCaml engine.

Trait Implementations§

Source§

impl Clone for LegacyOCamlPhase

Source§

fn clone(&self) -> LegacyOCamlPhase

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for LegacyOCamlPhase

Source§

impl Debug for LegacyOCamlPhase

Source§

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

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

impl<'de> Deserialize<'de> for LegacyOCamlPhase

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for LegacyOCamlPhase

Source§

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

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

impl From<LegacyOCamlPhase> for PhaseKind

Source§

fn from(legacy_phase: LegacyOCamlPhase) -> Self

Converts to this type from the input type.
Source§

impl Phase for LegacyOCamlPhase

Source§

fn apply(&self, items: &mut Vec<Item>)

Apply the phase on items. A phase may transform an item into zero, one or more items.
Source§

impl Serialize for LegacyOCamlPhase

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IsBody for T
where T: Clone + 'static,

Source§

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

Source§

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§

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>,

Source§

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 U: TryFrom<T>,

Source§

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

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more