Enum noodles::vcf::record::Filters [−][src]
pub enum Filters {
Missing,
Pass,
Fail(IndexSet<String, RandomState>),
}
Expand description
VCF record filters (FILTER
).
Variants
Missing (.
).
Pass (PASS
).
Fail(IndexSet<String, RandomState>)
A list of filters that caused the record to fail.
Tuple Fields of Fail
0: IndexSet<String, RandomState>
Implementations
pub fn try_from_iter<I, V>(iter: I) -> Result<Filters, TryFromIteratorError> where
I: IntoIterator<Item = V>,
V: AsRef<str>,
pub fn try_from_iter<I, V>(iter: I) -> Result<Filters, TryFromIteratorError> where
I: IntoIterator<Item = V>,
V: AsRef<str>,
Performs a conversion from a string iterator to a set of filters.
Examples
use noodles_vcf::record::Filters;
let filters = Filters::try_from_iter(&["PASS"])?;
assert_eq!(filters, Filters::Pass);
let filters = Filters::try_from_iter(&["q10", "s50"])?;
assert_eq!(filters, Filters::Fail(vec![
String::from("q10"),
String::from("s50"),
].into_iter().collect()));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Filters
impl UnwindSafe for Filters
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.