Trait Same
pub trait Same<Rhs = Self>
A type operator that ensures that Rhs is the same as Self, it is mainly useful
for writing macros that can take arbitrary binary or unary operators.
Same is implemented generically for all types; it should never need to be implemented
for anything else.
Note that Rust lazily evaluates types, so this will only fail for two different types if
the Output is used.
Example
use ;
assert_eq!;
// Only an error if we use it:
#
type Undefined = Output;
// Compiler error:
// Undefined::to_u32();
Associated Types
type Output;Should always be
Self
Implementors
impl<T> Same for ATermimpl<T> Same for B0impl<T> Same for B1impl<T> Same for Const<N>impl<T> Same for Equalimpl<T> Same for Greaterimpl<T> Same for Lessimpl<T> Same for NInt<U>impl<T> Same for PInt<U>impl<T> Same for Timpl<T> Same for TArr<V, A>impl<T> Same for UInt<U, B>impl<T> Same for UTermimpl<T> Same for Z0