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§
source§impl From<BTreeMap<Symbol, Term>> for TestHelper<Dictionary>
impl From<BTreeMap<Symbol, Term>> for TestHelper<Dictionary>
source§impl From<Dictionary> for TestHelper<Pattern>
impl From<Dictionary> for TestHelper<Pattern>
source§fn from(other: Dictionary) -> Self
fn from(other: Dictionary) -> Self
Converts to this type from the input type.
source§impl From<InstanceLiteral> for TestHelper<Pattern>
impl From<InstanceLiteral> for TestHelper<Pattern>
source§fn from(other: InstanceLiteral) -> Self
fn from(other: InstanceLiteral) -> Self
Converts to this type from the input type.
source§impl From<InstanceLiteral> for TestHelper<Value>
impl From<InstanceLiteral> for TestHelper<Value>
source§fn from(other: InstanceLiteral) -> Self
fn from(other: InstanceLiteral) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for TestHelper<T>
impl<T> From<T> for TestHelper<T>
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§
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