pub enum ModuleHeader {
Normal {
name: Spanned<ModuleName>,
exposing: Spanned<Exposing>,
},
Port {
name: Spanned<ModuleName>,
exposing: Spanned<Exposing>,
},
Effect {
name: Spanned<ModuleName>,
exposing: Spanned<Exposing>,
command: Option<Spanned<String>>,
subscription: Option<Spanned<String>>,
},
}Expand description
The module header declaration at the top of an Elm file.
Variants§
Normal
module Foo.Bar exposing (..)
Port
port module Foo.Bar exposing (..)
Effect
effect module Foo.Bar where { command = MyCmd } exposing (..)
Effect modules are internal to elm/core and elm/browser.
Trait Implementations§
Source§impl Clone for ModuleHeader
impl Clone for ModuleHeader
Source§fn clone(&self) -> ModuleHeader
fn clone(&self) -> ModuleHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleHeader
impl Debug for ModuleHeader
Source§impl PartialEq for ModuleHeader
impl PartialEq for ModuleHeader
Source§fn eq(&self, other: &ModuleHeader) -> bool
fn eq(&self, other: &ModuleHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleHeader
impl StructuralPartialEq for ModuleHeader
Auto Trait Implementations§
impl Freeze for ModuleHeader
impl RefUnwindSafe for ModuleHeader
impl Send for ModuleHeader
impl Sync for ModuleHeader
impl Unpin for ModuleHeader
impl UnsafeUnpin for ModuleHeader
impl UnwindSafe for ModuleHeader
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