[−][src]Struct mini_kanren::core::value::Value
Dynamic value
Implementations
impl Value
[src]
pub fn new(val: impl Into<Value>) -> Self
[src]
Construct a new value
pub fn from_arc<T: Structure>(x: Arc<T>) -> Self
[src]
Construct pre-Arc'd value
pub fn var(v: Var) -> Self
[src]
Construct a value representing a variable
pub fn rv(i: usize) -> Self
[src]
Construct a value representing a reified variable
pub fn cons(car: impl Into<Value>, cdr: impl Into<Value>) -> Self
[src]
Construct a pair from two values
pub fn try_as_var(&self) -> Option<Var>
[src]
Cast to Var
if the value represents a variable
pub fn downcast_ref<T: 'static>(&self) -> Option<&T>
[src]
Try to cast to concrete type
Trait Implementations
impl Clone for Value
[src]
impl Debug for Value
[src]
impl<A: Into<Value>, D: Into<Value>> From<(A, D)> for Value
[src]
impl<T: Structure> From<T> for Value
[src]
impl From<Vec<Value, Global>> for Value
[src]
impl<T: 'static + Atomic + PartialEq> PartialEq<T> for Value
[src]
impl PartialEq<Value> for Value
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Var> for Value
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Value
[src]
impl !Send for Value
[src]
impl !Sync for Value
[src]
impl Unpin for Value
[src]
impl !UnwindSafe for Value
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,