pub enum UnsupportedPolicy {
Error,
WarnAndSkipZone,
}Expand description
Policy for source constructs this version does not implement.
Variants§
Error
Abort the whole compilation (fail closed). The safe default.
WarnAndSkipZone
Emit a diagnostic, skip the offending zone, and keep going.
Trait Implementations§
Source§impl Clone for UnsupportedPolicy
impl Clone for UnsupportedPolicy
Source§fn clone(&self) -> UnsupportedPolicy
fn clone(&self) -> UnsupportedPolicy
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 UnsupportedPolicy
Source§impl Debug for UnsupportedPolicy
impl Debug for UnsupportedPolicy
Source§impl Default for UnsupportedPolicy
impl Default for UnsupportedPolicy
Source§fn default() -> UnsupportedPolicy
fn default() -> UnsupportedPolicy
Returns the “default value” for a type. Read more
impl Eq for UnsupportedPolicy
Source§impl From<UnsupportedArg> for UnsupportedPolicy
impl From<UnsupportedArg> for UnsupportedPolicy
Source§fn from(a: UnsupportedArg) -> Self
fn from(a: UnsupportedArg) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnsupportedPolicy
impl PartialEq for UnsupportedPolicy
Source§fn eq(&self, other: &UnsupportedPolicy) -> bool
fn eq(&self, other: &UnsupportedPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnsupportedPolicy
Auto Trait Implementations§
impl Freeze for UnsupportedPolicy
impl RefUnwindSafe for UnsupportedPolicy
impl Send for UnsupportedPolicy
impl Sync for UnsupportedPolicy
impl Unpin for UnsupportedPolicy
impl UnsafeUnpin for UnsupportedPolicy
impl UnwindSafe for UnsupportedPolicy
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