pub struct PythonEnumerator { /* private fields */ }Expand description
Exhaustive Python program enumerator
Implementations§
Source§impl PythonEnumerator
impl PythonEnumerator
Sourcepub fn enumerate_expressions(&self, depth: usize) -> Vec<PythonNode>
pub fn enumerate_expressions(&self, depth: usize) -> Vec<PythonNode>
Enumerate all expressions up to the given depth
Sourcepub fn enumerate_statements(&self, depth: usize) -> Vec<PythonNode>
pub fn enumerate_statements(&self, depth: usize) -> Vec<PythonNode>
Enumerate all statements up to the given depth
Sourcepub fn enumerate_programs(&self) -> Vec<GeneratedCode>
pub fn enumerate_programs(&self) -> Vec<GeneratedCode>
Enumerate complete programs (modules)
Trait Implementations§
Source§impl Debug for PythonEnumerator
impl Debug for PythonEnumerator
Auto Trait Implementations§
impl Freeze for PythonEnumerator
impl RefUnwindSafe for PythonEnumerator
impl Send for PythonEnumerator
impl Sync for PythonEnumerator
impl Unpin for PythonEnumerator
impl UnsafeUnpin for PythonEnumerator
impl UnwindSafe for PythonEnumerator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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