pub enum OccurrenceIndicator {
One,
ZeroOrOne,
ZeroOrMore,
OneOrMore,
}Expand description
Occurrence indicator for sequence types.
Variants§
One
Exactly one (no indicator).
ZeroOrOne
Zero or one (?).
ZeroOrMore
Zero or more (*).
OneOrMore
One or more (+).
Trait Implementations§
Source§impl Clone for OccurrenceIndicator
impl Clone for OccurrenceIndicator
Source§fn clone(&self) -> OccurrenceIndicator
fn clone(&self) -> OccurrenceIndicator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OccurrenceIndicator
Source§impl Debug for OccurrenceIndicator
impl Debug for OccurrenceIndicator
Source§impl Default for OccurrenceIndicator
impl Default for OccurrenceIndicator
Source§fn default() -> OccurrenceIndicator
fn default() -> OccurrenceIndicator
Returns the “default value” for a type. Read more
impl Eq for OccurrenceIndicator
Source§impl PartialEq for OccurrenceIndicator
impl PartialEq for OccurrenceIndicator
Source§fn eq(&self, other: &OccurrenceIndicator) -> bool
fn eq(&self, other: &OccurrenceIndicator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OccurrenceIndicator
Auto Trait Implementations§
impl Freeze for OccurrenceIndicator
impl RefUnwindSafe for OccurrenceIndicator
impl Send for OccurrenceIndicator
impl Sync for OccurrenceIndicator
impl Unpin for OccurrenceIndicator
impl UnsafeUnpin for OccurrenceIndicator
impl UnwindSafe for OccurrenceIndicator
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