pub struct Import {
pub module: Identifier,
pub qualified: bool,
pub as_name: Option<Identifier>,
}Expand description
An import declaration in Haskell.
Fields§
§module: IdentifierThe module to import.
qualified: boolWhether the import is qualified.
as_name: Option<Identifier>The name to import the module as, if present.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Import
impl<'de> Deserialize<'de> for Import
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Import
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