pub enum Type_ {
Unit,
Single(SingleType),
Multiple(Vec<SingleType>),
}
Variants§
Implementations§
source§impl Type_
impl Type_
pub fn base(b: BaseType) -> Type
pub fn single(_: SingleType) -> Type
pub fn bool(loc: Loc) -> Type
pub fn address(loc: Loc) -> Type
pub fn u8(loc: Loc) -> Type
pub fn u64(loc: Loc) -> Type
pub fn u128(loc: Loc) -> Type
pub fn type_at_index(&self, idx: usize) -> &SingleType
pub fn from_vec(loc: Loc, ss: Vec<SingleType>) -> Type
Trait Implementations§
source§impl PartialEq<Type_> for Type_
impl PartialEq<Type_> for Type_
impl Eq for Type_
impl StructuralEq for Type_
impl StructuralPartialEq for Type_
Auto Trait Implementations§
impl RefUnwindSafe for Type_
impl Send for Type_
impl Sync for Type_
impl Unpin for Type_
impl UnwindSafe for Type_
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.