Enum forc_pkg::PkgEntryKind
source · pub enum PkgEntryKind {
Main,
Test(PkgTestEntry),
}
Expand description
Data specific to each kind of package entry point.
Variants§
Main
Test(PkgTestEntry)
Implementations§
source§impl PkgEntryKind
impl PkgEntryKind
sourcepub fn test(&self) -> Option<&PkgTestEntry>
pub fn test(&self) -> Option<&PkgTestEntry>
Returns Some
if the PkgEntryKind
is Test
.
Trait Implementations§
source§impl Clone for PkgEntryKind
impl Clone for PkgEntryKind
source§fn clone(&self) -> PkgEntryKind
fn clone(&self) -> PkgEntryKind
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 more