pub enum CollectionMode {
Unordered,
OrderedList,
}Expand description
The closed collection semantics of an ownership or related-role fact.
Variants§
Unordered
Multiplicity is retained, but member order is not semantic.
OrderedList
Members form a semantic ordered list, including at scalar cardinality.
Implementations§
Source§impl CollectionMode
impl CollectionMode
Sourcepub const fn is_unordered(&self) -> bool
pub const fn is_unordered(&self) -> bool
Report whether this is the compatibility-default unordered mode.
Trait Implementations§
Source§impl Clone for CollectionMode
impl Clone for CollectionMode
impl Copy for CollectionMode
Source§impl Debug for CollectionMode
impl Debug for CollectionMode
Source§impl Default for CollectionMode
impl Default for CollectionMode
impl Eq for CollectionMode
Source§impl Hash for CollectionMode
impl Hash for CollectionMode
Source§impl Ord for CollectionMode
impl Ord for CollectionMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CollectionMode
impl PartialEq for CollectionMode
Source§impl PartialOrd for CollectionMode
impl PartialOrd for CollectionMode
Source§impl Serialize for CollectionMode
impl Serialize for CollectionMode
impl StructuralPartialEq for CollectionMode
Auto Trait Implementations§
impl Freeze for CollectionMode
impl RefUnwindSafe for CollectionMode
impl Send for CollectionMode
impl Sync for CollectionMode
impl Unpin for CollectionMode
impl UnsafeUnpin for CollectionMode
impl UnwindSafe for CollectionMode
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