Enum spirt::TypeOrConst
source · pub enum TypeOrConst {
Type(Type),
Const(Const),
}
Variants§
Trait Implementations§
source§impl Clone for TypeOrConst
impl Clone for TypeOrConst
source§fn clone(&self) -> TypeOrConst
fn clone(&self) -> TypeOrConst
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for TypeOrConst
impl Hash for TypeOrConst
source§impl PartialEq for TypeOrConst
impl PartialEq for TypeOrConst
source§fn eq(&self, other: &TypeOrConst) -> bool
fn eq(&self, other: &TypeOrConst) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypeOrConst
impl Eq for TypeOrConst
impl StructuralPartialEq for TypeOrConst
Auto Trait Implementations§
impl RefUnwindSafe for TypeOrConst
impl Send for TypeOrConst
impl Sync for TypeOrConst
impl Unpin for TypeOrConst
impl UnwindSafe for TypeOrConst
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.