pub enum Arity {
One,
ManyOrdered,
ManyUnordered,
}
Expand description
An arity of an container.
Variants§
One
Contains one thing.
Or, at most one, in case it is also optional.
ManyOrdered
Multiple things of the same kind, preserving order.
ManyUnordered
Multiple things of the same kind, without specified order.
Trait Implementations§
impl Eq for Arity
impl StructuralPartialEq for Arity
Auto Trait Implementations§
impl Freeze for Arity
impl RefUnwindSafe for Arity
impl Send for Arity
impl Sync for Arity
impl Unpin for Arity
impl UnwindSafe for Arity
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