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§
Trait Implementations§
Source§impl Debug for AsPrecursorCollection
impl Debug for AsPrecursorCollection
Source§impl From<Precursor> for AsPrecursorCollection
impl From<Precursor> for AsPrecursorCollection
Source§fn from(value: Precursor) -> AsPrecursorCollection
fn from(value: Precursor) -> AsPrecursorCollection
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsPrecursorCollection
impl RefUnwindSafe for AsPrecursorCollection
impl Send for AsPrecursorCollection
impl Sync for AsPrecursorCollection
impl Unpin 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