Enum midl_parser::Occurrence [−][src]
pub enum Occurrence { Optional, Repeated, Required, }
Expand description
A field occurrence: how any times field may appear moved from model since it’s just for parsing now
Variants
A well-formed message can have zero or one of this field (but not more than one).
This field can be repeated any number of times (including zero) in a well-formed message. The order of the repeated values will be preserved.
A well-formed message must have exactly one of this field.
Trait Implementations
impl Clone for Occurrence
[src]
impl Clone for Occurrence
[src]fn clone(&self) -> Occurrence
[src]
fn clone(&self) -> Occurrence
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Occurrence
[src]
impl Debug for Occurrence
[src]impl Hash for Occurrence
[src]
impl Hash for Occurrence
[src]impl PartialEq<Occurrence> for Occurrence
[src]
impl PartialEq<Occurrence> for Occurrence
[src]impl Copy for Occurrence
[src]
impl Eq for Occurrence
[src]
impl StructuralEq for Occurrence
[src]
impl StructuralPartialEq for Occurrence
[src]
Auto Trait Implementations
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnwindSafe for Occurrence
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more