pub enum Type_ {
Unit,
Single(SingleType),
Multiple(Vec<SingleType>),
}
Variants
Unit
Single(SingleType)
Multiple(Vec<SingleType>)
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more