pub enum Stream<U: User, E: Engine<U>> {
Empty,
Unit(Box<State<U, E>>),
Lazy(LazyStream<U, E>),
Cons(Box<State<U, E>>, LazyStream<U, E>),
}Variants§
Implementations§
Source§impl<U: User, E: Engine<U>> Stream<U, E>
impl<U: User, E: Engine<U>> Stream<U, E>
pub fn is_empty(&self) -> bool
pub fn unit(u: Box<State<U, E>>) -> Stream<U, E>
pub fn empty() -> Stream<U, E>
pub fn cons(a: Box<State<U, E>>, lazy: LazyStream<U, E>) -> Stream<U, E>
pub fn lazy(lazy: LazyStream<U, E>) -> Stream<U, E>
pub fn mplus(stream: Stream<U, E>, lazy: LazyStream<U, E>) -> Stream<U, E>
pub fn bind(stream: Stream<U, E>, goal: Goal<U, E>) -> Stream<U, E>
pub fn lazy_mplus( lazy: LazyStream<U, E>, lazy_hat: LazyStream<U, E>, ) -> Stream<U, E>
pub fn pause(state: Box<State<U, E>>, goal: Goal<U, E>) -> Stream<U, E>
pub fn mplus_dfs(stream: Stream<U, E>, lazy: LazyStream<U, E>) -> Stream<U, E>
pub fn bind_dfs(stream: Stream<U, E>, goal: DFSGoal<U, E>) -> Stream<U, E>
pub fn lazy_bind(lazy: LazyStream<U, E>, goal: Goal<U, E>) -> Stream<U, E>
pub fn lazy_mplus_dfs( lazy: LazyStream<U, E>, lazy_hat: LazyStream<U, E>, ) -> Stream<U, E>
pub fn lazy_bind_dfs( lazy: LazyStream<U, E>, goal: DFSGoal<U, E>, ) -> Stream<U, E>
pub fn pause_dfs(state: Box<State<U, E>>, goal: DFSGoal<U, E>) -> Stream<U, E>
pub fn delay(stream: Stream<U, E>) -> Stream<U, E>
pub fn iterator(iter: Box<dyn StreamIterator<U, E>>) -> Stream<U, E>
pub fn is_mature(&self) -> bool
pub fn head(&self) -> Option<&Box<State<U, E>>>
pub fn walk<'a>(&'a self) -> StreamWalker<'a, U, E>
Trait Implementations§
Auto Trait Implementations§
impl<U, E> !RefUnwindSafe for Stream<U, E>
impl<U, E> !Send for Stream<U, E>
impl<U, E> !Sync for Stream<U, E>
impl<U, E> !UnwindSafe for Stream<U, E>
impl<U, E> Freeze for Stream<U, E>
impl<U, E> Unpin for Stream<U, E>
impl<U, E> UnsafeUnpin for Stream<U, E>
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