Struct polar_core::macros::TestHelper
source · [−]pub struct TestHelper<T>(pub T);
Expand description
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.
Tuple Fields
0: T
Trait Implementations
sourceimpl From<&str> for TestHelper<Value>
impl From<&str> for TestHelper<Value>
sourceimpl From<BTreeMap<Symbol, Term, Global>> for TestHelper<Dictionary>
impl From<BTreeMap<Symbol, Term, Global>> for TestHelper<Dictionary>
sourceimpl From<Call> for TestHelper<Value>
impl From<Call> for TestHelper<Value>
sourceimpl From<Dictionary> for TestHelper<Pattern>
impl From<Dictionary> for TestHelper<Pattern>
sourcefn from(other: Dictionary) -> Self
fn from(other: Dictionary) -> Self
Converts to this type from the input type.
sourceimpl From<InstanceLiteral> for TestHelper<Pattern>
impl From<InstanceLiteral> for TestHelper<Pattern>
sourcefn from(other: InstanceLiteral) -> Self
fn from(other: InstanceLiteral) -> Self
Converts to this type from the input type.
sourceimpl From<InstanceLiteral> for TestHelper<Value>
impl From<InstanceLiteral> for TestHelper<Value>
sourcefn from(other: InstanceLiteral) -> Self
fn from(other: InstanceLiteral) -> Self
Converts to this type from the input type.
sourceimpl From<Operation> for TestHelper<Value>
impl From<Operation> for TestHelper<Value>
sourceimpl From<Pattern> for TestHelper<Term>
impl From<Pattern> for TestHelper<Term>
sourceimpl From<Pattern> for TestHelper<Value>
impl From<Pattern> for TestHelper<Value>
sourceimpl From<Symbol> for TestHelper<Value>
impl From<Symbol> for TestHelper<Value>
sourceimpl<T> From<T> for TestHelper<T>
impl<T> From<T> for TestHelper<T>
sourceimpl From<Value> for TestHelper<Parameter>
impl From<Value> for TestHelper<Parameter>
sourceimpl From<Value> for TestHelper<Term>
impl From<Value> for TestHelper<Term>
sourceimpl From<bool> for TestHelper<Value>
impl From<bool> for TestHelper<Value>
sourceimpl From<f64> for TestHelper<Value>
impl From<f64> for TestHelper<Value>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more