[][src]Struct polar_core::macros::TestHelper

pub struct TestHelper<T>(pub T);

Special struct which is way more eager at implementing From for a bunch of things, so that in the macros we can use TestHelper<Term>::from and try and convert things as often as possible.

Trait Implementations

impl<'_> From<&'_ str> for TestHelper<Value>[src]

impl From<(Symbol, Term)> for TestHelper<Parameter>[src]

impl From<BTreeMap<Symbol, Term>> for TestHelper<Dictionary>[src]

impl From<BTreeMap<Symbol, Term>> for TestHelper<Value>[src]

impl From<Call> for TestHelper<Value>[src]

impl From<InstanceLiteral> for TestHelper<Value>[src]

impl From<Operation> for TestHelper<Value>[src]

impl From<Pattern> for TestHelper<Value>[src]

impl<S: AsRef<str>> From<S> for TestHelper<Symbol>[src]

impl From<Symbol> for TestHelper<Value>[src]

impl<T> From<T> for TestHelper<T>[src]

impl From<Value> for TestHelper<Term>[src]

impl From<Value> for TestHelper<Parameter>[src]

fn from(name: Value) -> Self[src]

Convert a Value to a parameter. If the value is a symbol, it is used as the parameter name. Otherwise it is assumed to be a specializer.

impl From<Vec<Term>> for TestHelper<Value>[src]

impl From<bool> for TestHelper<Value>[src]

impl From<f64> for TestHelper<Value>[src]

impl From<i64> for TestHelper<Value>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for TestHelper<T> where
    T: RefUnwindSafe

impl<T> Send for TestHelper<T> where
    T: Send

impl<T> Sync for TestHelper<T> where
    T: Sync

impl<T> Unpin for TestHelper<T> where
    T: Unpin

impl<T> UnwindSafe for TestHelper<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.