[−][src]Struct optimization::compile_time_assertions::CompileTimeAssertions
Methods
impl CompileTimeAssertions
[src]
impl CompileTimeAssertions
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn check_program(&self, program: &FirmProgram, phase: Phase)
[src]
pub fn check_program(&self, program: &FirmProgram, phase: Phase)
pub fn check_call<T: Fn(Call, &Phase)>(
&self,
basename: &str,
checker: T,
call: Call,
phase: &Phase
)
[src]
pub fn check_call<T: Fn(Call, &Phase)>(
&self,
basename: &str,
checker: T,
call: Call,
phase: &Phase
)
Check if a call is a match for the given test
This allows for method overloading by adding a suffix, e.g.
a check_call("is_const", assert_const, call, phase)
before and after
the first optimization ConstantFolding
will match:
Opt0Before$M$is_const
,Opt0After$M$is_const_4
,ConstantFoldingBefore$M$is_const
- ...
pub fn check_graph(&self, graph: Graph, phase: Phase)
[src]
pub fn check_graph(&self, graph: Graph, phase: Phase)
Trait Implementations
impl Clone for CompileTimeAssertions
[src]
impl Clone for CompileTimeAssertions
fn clone(&self) -> CompileTimeAssertions
[src]
fn clone(&self) -> CompileTimeAssertions
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for CompileTimeAssertions
[src]
impl Default for CompileTimeAssertions
fn default() -> CompileTimeAssertions
[src]
fn default() -> CompileTimeAssertions
impl Debug for CompileTimeAssertions
[src]
impl Debug for CompileTimeAssertions
Auto Trait Implementations
impl Send for CompileTimeAssertions
impl Send for CompileTimeAssertions
impl Sync for CompileTimeAssertions
impl Sync for CompileTimeAssertions
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Typeable for T where
T: Any,
[src]
impl<T> Typeable for T where
T: Any,
impl<T> IntoCollection for T
[src]
impl<T> IntoCollection for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
[src]
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
[src]
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult for T where
I: Input,
[src]
impl<T, I> AsResult for T where
I: Input,