Enum solang_parser::pt::ContractTy
source · pub enum ContractTy {
Abstract(Loc),
Contract(Loc),
Interface(Loc),
Library(Loc),
}
Expand description
The contract type.
Variants§
Abstract(Loc)
abstract contract
Contract(Loc)
contract
Interface(Loc)
interface
Library(Loc)
library
Implementations§
Trait Implementations§
source§impl Clone for ContractTy
impl Clone for ContractTy
source§fn clone(&self) -> ContractTy
fn clone(&self) -> ContractTy
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 CodeLocation for ContractTy
impl CodeLocation for ContractTy
source§impl Debug for ContractTy
impl Debug for ContractTy
source§impl Display for ContractTy
impl Display for ContractTy
source§impl OptionalCodeLocation for ContractTy
impl OptionalCodeLocation for ContractTy
source§impl PartialEq for ContractTy
impl PartialEq for ContractTy
source§fn eq(&self, other: &ContractTy) -> bool
fn eq(&self, other: &ContractTy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ContractTy
impl StructuralEq for ContractTy
impl StructuralPartialEq for ContractTy
Auto Trait Implementations§
impl RefUnwindSafe for ContractTy
impl Send for ContractTy
impl Sync for ContractTy
impl Unpin for ContractTy
impl UnwindSafe for ContractTy
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