pub enum Format {
Json,
Mgf,
MzML,
}Expand description
Types of formats that can be read or written.
§Examples
Create Format::Mgf from a string.
use std::str::FromStr;
use msn_kit::io::Format;
let f = Format::from_str("mgf").unwrap();
assert_eq!(f, Format::Mgf);Variants§
Json
json newline format
Mgf
Mascot Generic Format
MzML
mzML format specified here: https://www.psidev.info/mzML
Trait Implementations§
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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