pub enum Arity<S> {
Many(Vec<S>),
One(S),
}
Expand description
The arity type here is used to mean a single or non-single container.
Variants§
Trait Implementations§
source§impl<S: PartialEq> PartialEq<Arity<S>> for Arity<S>
impl<S: PartialEq> PartialEq<Arity<S>> for Arity<S>
impl<S: Eq> Eq for Arity<S>
impl<S> StructuralEq for Arity<S>
impl<S> StructuralPartialEq for Arity<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Arity<S>where S: RefUnwindSafe,
impl<S> Send for Arity<S>where S: Send,
impl<S> Sync for Arity<S>where S: Sync,
impl<S> Unpin for Arity<S>where S: Unpin,
impl<S> UnwindSafe for Arity<S>where S: UnwindSafe,
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