pub struct TermZoo<PT: ProtocolTypes> {
terms: Vec<Term<PT>>,
}
Fields§
§terms: Vec<Term<PT>>
Implementations§
source§impl<PT: ProtocolTypes> TermZoo<PT>
impl<PT: ProtocolTypes> TermZoo<PT>
pub fn generate<R: Rand>(signature: &Signature<PT>, rand: &mut R) -> Self
fn generate_term<R: Rand>( signature: &Signature<PT>, (shape, dynamic_fn): &FunctionDefinition<PT>, depth: u16, rand: &mut R, ) -> Option<Term<PT>>
pub fn choose_filtered<P, R: Rand>( &self, filter: P, rand: &mut R, ) -> Option<&Term<PT>>
pub fn terms(&self) -> &[Term<PT>]
Auto Trait Implementations§
impl<PT> Freeze for TermZoo<PT>
impl<PT> !RefUnwindSafe for TermZoo<PT>
impl<PT> Send for TermZoo<PT>
impl<PT> Sync for TermZoo<PT>
impl<PT> Unpin for TermZoo<PT>
impl<PT> !UnwindSafe for TermZoo<PT>
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.