Enum sway_ast::module::ModuleKind
source · [−]pub enum ModuleKind {
Script {
script_token: ScriptToken,
},
Contract {
contract_token: ContractToken,
},
Predicate {
predicate_token: PredicateToken,
},
Library {
library_token: LibraryToken,
name: Ident,
},
}
Variants
Script
Fields
script_token: ScriptToken
Contract
Fields
contract_token: ContractToken
Predicate
Fields
predicate_token: PredicateToken
Library
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModuleKind
impl Send for ModuleKind
impl Sync for ModuleKind
impl Unpin for ModuleKind
impl UnwindSafe for ModuleKind
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