Struct Is

Source
pub struct Is;
Expand description

TyLisp operator that compares two values for identity

Accepts two parameters that both implement LispId. Returns True if both ids are equal and False otherwise.

Warning: the current implementation of LispId only considers the base type, so Foo might compare equal to Foo. This behavior is subject to change in the future.

Trait Implementations§

Source§

impl<Q> Calc<Q> for Is
where Self: Default,

Source§

type Result = Is

Source§

fn calc(_: Q) -> Self

Source§

impl Call for Is

Source§

type Conv = Func

Which calling convention is expected? Read more
Source§

impl Debug for Is

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Is

Source§

fn default() -> Is

Returns the “default value” for a type. Read more
Source§

impl Eval for Is

Source§

impl<T> FunCalc<T> for Is
where Is: FunCall<T>, <Is as FunCall<T>>::Result: Default,

Source§

type Result = <Is as FunCall<T>>::Result

Source§

fn calc(self, _: T) -> Self::Result

Source§

impl<L, R> FunCall<HCons<L, HCons<R, HNil>>> for Is
where L: LispId, R: LispId, L::Id: IsEqual<R::Id>, <L::Id as IsEqual<R::Id>>::Output: Default,

Source§

type Result = <<L as LispId>::Id as IsEqual<<R as LispId>::Id>>::Output

Source§

impl LispId for Is

Auto Trait Implementations§

§

impl Freeze for Is

§

impl RefUnwindSafe for Is

§

impl Send for Is

§

impl Sync for Is

§

impl Unpin for Is

§

impl UnwindSafe for Is

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Everything for T
where T: ?Sized,