pub enum FeatureNameKindArg {
Auto,
Exact,
Gene,
Locus,
LocusOverlap,
Mixed,
}Expand description
Clap-facing spelling of FeatureNameKind.
The rule and the flag that selects it belong together: every crate that
aligns feature names across files exposes the same --feature-name-kind
vocabulary, so senna and anything after it agree on what
gene or locus means without each inventing a local rule.
Variants§
Implementations§
Source§impl FeatureNameKindArg
impl FeatureNameKindArg
Sourcepub fn resolve_or_gene(&self) -> FeatureNameKind
pub fn resolve_or_gene(&self) -> FeatureNameKind
Resolve to a concrete FeatureNameKind, defaulting Auto to
Gene { delim: '_' } — the standard for gene-keyed pre-train
inputs (bge / fne / topic-family dictionaries).
Trait Implementations§
Source§impl Clone for FeatureNameKindArg
impl Clone for FeatureNameKindArg
Source§impl Debug for FeatureNameKindArg
impl Debug for FeatureNameKindArg
Source§impl Default for FeatureNameKindArg
impl Default for FeatureNameKindArg
Source§impl<'de> Deserialize<'de> for FeatureNameKindArg
impl<'de> Deserialize<'de> for FeatureNameKindArg
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
Source§impl From<FeatureNameKindArg> for Option<FeatureNameKind>
impl From<FeatureNameKindArg> for Option<FeatureNameKind>
Source§fn from(arg: FeatureNameKindArg) -> Self
fn from(arg: FeatureNameKindArg) -> Self
Converts to this type from the input type.
Source§impl Serialize for FeatureNameKindArg
impl Serialize for FeatureNameKindArg
Source§impl ValueEnum for FeatureNameKindArg
impl ValueEnum for FeatureNameKindArg
Auto Trait Implementations§
impl Freeze for FeatureNameKindArg
impl RefUnwindSafe for FeatureNameKindArg
impl Send for FeatureNameKindArg
impl Sync for FeatureNameKindArg
impl Unpin for FeatureNameKindArg
impl UnsafeUnpin for FeatureNameKindArg
impl UnwindSafe for FeatureNameKindArg
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.