pub enum AsPrecursorCollection {
Single(Option<Precursor>),
Multiple(Vec<Precursor>),
}Expand description
An adapter type to make it possible to pass an Option<Precursor>, Vec<Precursor>,
or Precursor in an argument context.
Variants§
Single(Option<Precursor>)
A single Precursor
Multiple(Vec<Precursor>)
Multiple Precursor, denoting higher order MSn
Trait Implementations§
Source§impl Debug for AsPrecursorCollection
impl Debug for AsPrecursorCollection
Source§impl From<AsPrecursorCollection> for Vec<Precursor>
impl From<AsPrecursorCollection> for Vec<Precursor>
Source§fn from(value: AsPrecursorCollection) -> Self
fn from(value: AsPrecursorCollection) -> Self
Converts to this type from the input type.
Source§impl From<Precursor> for AsPrecursorCollection
impl From<Precursor> for AsPrecursorCollection
Auto Trait Implementations§
impl Freeze for AsPrecursorCollection
impl RefUnwindSafe for AsPrecursorCollection
impl Send for AsPrecursorCollection
impl Sync for AsPrecursorCollection
impl Unpin for AsPrecursorCollection
impl UnsafeUnpin for AsPrecursorCollection
impl UnwindSafe for AsPrecursorCollection
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