pub enum ZoneReferenceKind {
From,
Allow,
AllowTypeOnly,
}Expand description
Which zone-reference surface on a BoundaryRule carries an unknown name.
The diagnostic surfaces the kind so users editing a multi-field rule know
whether to fix from, allow, or allowTypeOnly.
Variants§
From
Rule’s from field names an undefined zone.
Allow
One entry in the rule’s allow list names an undefined zone.
AllowTypeOnly
One entry in the rule’s allowTypeOnly list names an undefined zone.
Trait Implementations§
Source§impl Clone for ZoneReferenceKind
impl Clone for ZoneReferenceKind
Source§fn clone(&self) -> ZoneReferenceKind
fn clone(&self) -> ZoneReferenceKind
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 moreSource§impl Debug for ZoneReferenceKind
impl Debug for ZoneReferenceKind
Source§impl PartialEq for ZoneReferenceKind
impl PartialEq for ZoneReferenceKind
Source§fn eq(&self, other: &ZoneReferenceKind) -> bool
fn eq(&self, other: &ZoneReferenceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ZoneReferenceKind
impl Eq for ZoneReferenceKind
impl StructuralPartialEq for ZoneReferenceKind
Auto Trait Implementations§
impl Freeze for ZoneReferenceKind
impl RefUnwindSafe for ZoneReferenceKind
impl Send for ZoneReferenceKind
impl Sync for ZoneReferenceKind
impl Unpin for ZoneReferenceKind
impl UnsafeUnpin for ZoneReferenceKind
impl UnwindSafe for ZoneReferenceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.