pub struct ComponentFields<'a> {
pub name: Option<&'a str>,
pub cst_node: NodeId,
pub imports: Vec<&'a str>,
pub build_depends: Vec<Dependency<'a>>,
pub other_modules: Vec<&'a str>,
pub hs_source_dirs: Vec<&'a str>,
pub default_language: Option<&'a str>,
pub default_extensions: Vec<&'a str>,
pub ghc_options: Vec<&'a str>,
pub other_fields: Vec<Field<'a>>,
pub conditionals: Vec<Conditional<'a>>,
}Expand description
Shared fields across all component types (library, executable, etc.).
Fields§
§name: Option<&'a str>Component name (None for the unnamed default library).
cst_node: NodeIdBack-reference to the CST section node.
imports: Vec<&'a str>import: directives.
build_depends: Vec<Dependency<'a>>build-depends entries.
other_modules: Vec<&'a str>other-modules entries.
hs_source_dirs: Vec<&'a str>hs-source-dirs entries.
default_language: Option<&'a str>default-language value.
default_extensions: Vec<&'a str>default-extensions entries.
ghc_options: Vec<&'a str>ghc-options entries.
other_fields: Vec<Field<'a>>Fields not specifically parsed.
conditionals: Vec<Conditional<'a>>Conditional blocks within this component.
Trait Implementations§
Source§impl<'a> Clone for ComponentFields<'a>
impl<'a> Clone for ComponentFields<'a>
Source§fn clone(&self) -> ComponentFields<'a>
fn clone(&self) -> ComponentFields<'a>
Returns a duplicate 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<'a> Debug for ComponentFields<'a>
impl<'a> Debug for ComponentFields<'a>
Source§impl<'a> PartialEq for ComponentFields<'a>
impl<'a> PartialEq for ComponentFields<'a>
impl<'a> Eq for ComponentFields<'a>
impl<'a> StructuralPartialEq for ComponentFields<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentFields<'a>
impl<'a> RefUnwindSafe for ComponentFields<'a>
impl<'a> Send for ComponentFields<'a>
impl<'a> Sync for ComponentFields<'a>
impl<'a> Unpin for ComponentFields<'a>
impl<'a> UnsafeUnpin for ComponentFields<'a>
impl<'a> UnwindSafe for ComponentFields<'a>
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