pub struct FeatureCheckedProgram<'a, Target> { /* private fields */ }
Expand description
A wrapper around Program
that enforces having
been checked for feature support on a particular backend.
Implementations§
Source§impl<'a, T: Target> FeatureCheckedProgram<'a, T>
impl<'a, T: Target> FeatureCheckedProgram<'a, T>
pub fn check(program: &'a Program) -> Result<Self, UnsupportedFeature>
Methods from Deref<Target = Tree<Term>>§
Sourcepub fn walk(&self) -> TreeWalker<'_, T>
pub fn walk(&self) -> TreeWalker<'_, T>
Create a tree walker to arbitrarily traverse the tree.
Sourcepub fn postorder(&self) -> PostorderIter<'_, T>where
T: IndexNode,
pub fn postorder(&self) -> PostorderIter<'_, T>where
T: IndexNode,
Perform a postorder depth first traversal of the tree.
Currently has substantially more iteration overhead than postorder
,
but running time appears to stay inside an order of magnitude on large trees.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Target> Freeze for FeatureCheckedProgram<'a, Target>
impl<'a, Target> RefUnwindSafe for FeatureCheckedProgram<'a, Target>where
Target: RefUnwindSafe,
impl<'a, Target> Send for FeatureCheckedProgram<'a, Target>where
Target: Send,
impl<'a, Target> Sync for FeatureCheckedProgram<'a, Target>where
Target: Sync,
impl<'a, Target> Unpin for FeatureCheckedProgram<'a, Target>where
Target: Unpin,
impl<'a, Target> UnwindSafe for FeatureCheckedProgram<'a, Target>where
Target: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more