pub struct TermZoo<PB: ProtocolBehavior> {
terms: Vec<Term<PB::ProtocolTypes>>,
}
Fields§
§terms: Vec<Term<PB::ProtocolTypes>>
Implementations§
source§impl<PB: ProtocolBehavior> TermZoo<PB>
impl<PB: ProtocolBehavior> TermZoo<PB>
pub fn generate<R: Rand>( ctx: &TraceContext<PB>, signature: &Signature<PB::ProtocolTypes>, rand: &mut R, how_many: usize, ) -> Self
pub fn generate_many<R: Rand>( ctx: &TraceContext<PB>, signature: &Signature<PB::ProtocolTypes>, rand: &mut R, how_many: usize, filter: Option<&FunctionDefinition<PB::ProtocolTypes>>, filter_evaluated: bool, filter_no_gen: bool, ) -> Self
fn generate_term<R: Rand>( signature: &Signature<PB::ProtocolTypes>, (shape, dynamic_fn): &FunctionDefinition<PB::ProtocolTypes>, depth: u16, rand: &mut R, ) -> Option<Term<PB::ProtocolTypes>>
pub fn choose_filtered<P, R: Rand>( &self, filter: P, rand: &mut R, ) -> Option<&Term<PB::ProtocolTypes>>
pub fn terms(&self) -> &[Term<PB::ProtocolTypes>]
Auto Trait Implementations§
impl<PB> Freeze for TermZoo<PB>
impl<PB> !RefUnwindSafe for TermZoo<PB>
impl<PB> Send for TermZoo<PB>where
<PB as ProtocolBehavior>::ProtocolTypes: Send,
<<PB as ProtocolBehavior>::ProtocolTypes as ProtocolTypes>::Matcher: Send,
impl<PB> Sync for TermZoo<PB>where
<PB as ProtocolBehavior>::ProtocolTypes: Sync,
<<PB as ProtocolBehavior>::ProtocolTypes as ProtocolTypes>::Matcher: Sync,
impl<PB> Unpin for TermZoo<PB>where
<PB as ProtocolBehavior>::ProtocolTypes: Unpin,
<<PB as ProtocolBehavior>::ProtocolTypes as ProtocolTypes>::Matcher: Unpin,
impl<PB> !UnwindSafe for TermZoo<PB>
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
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.