pub enum UnsupportedPolicy {
RejectAtCompile = 0,
}Expand description
What the compiler does when an occurrence is Unsupported. Discriminant is the stable code.
Variants§
RejectAtCompile = 0
Any Unsupported occurrence fails the compile with its diagnostics.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for UnsupportedPolicy
impl<'__de, __Context> BorrowDecode<'__de, __Context> for UnsupportedPolicy
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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<__Context> Decode<__Context> for UnsupportedPolicy
impl<__Context> Decode<__Context> for UnsupportedPolicy
Source§impl Encode for UnsupportedPolicy
impl Encode for UnsupportedPolicy
impl Eq for UnsupportedPolicy
Source§impl Hash for UnsupportedPolicy
impl Hash for UnsupportedPolicy
Source§impl PartialEq for UnsupportedPolicy
impl PartialEq for UnsupportedPolicy
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