pub struct RuchyEnumerator { /* private fields */ }Expand description
Exhaustive Ruchy program enumerator
Implementations§
Source§impl RuchyEnumerator
impl RuchyEnumerator
Sourcepub fn enumerate_expressions(&self, depth: usize) -> Vec<RuchyNode>
pub fn enumerate_expressions(&self, depth: usize) -> Vec<RuchyNode>
Enumerate all expressions up to the given depth
Sourcepub fn enumerate_statements(&self, depth: usize) -> Vec<RuchyNode>
pub fn enumerate_statements(&self, depth: usize) -> Vec<RuchyNode>
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
Trait Implementations§
Source§impl Debug for RuchyEnumerator
impl Debug for RuchyEnumerator
Auto Trait Implementations§
impl Freeze for RuchyEnumerator
impl RefUnwindSafe for RuchyEnumerator
impl Send for RuchyEnumerator
impl Sync for RuchyEnumerator
impl Unpin for RuchyEnumerator
impl UnsafeUnpin for RuchyEnumerator
impl UnwindSafe for RuchyEnumerator
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