#[repr(u32)]pub enum DeprecationLevel {
NoWarnings = 0,
MajorReleaseDeprecated = 1,
NewAndFutureDeprecated = 2,
}
Expand description
Level of warning that will be printed when deprecated APIs are used
Variants§
NoWarnings = 0
No warnings will be prented
MajorReleaseDeprecated = 1
Functionality deprecated in a major release will be warned
NewAndFutureDeprecated = 2
Any deprecated API use will be warned
Trait Implementations§
source§impl Clone for DeprecationLevel
impl Clone for DeprecationLevel
source§fn clone(&self) -> DeprecationLevel
fn clone(&self) -> DeprecationLevel
Returns a copy of the value. Read more
1.0.0 · 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 DeprecationLevel
impl Debug for DeprecationLevel
source§impl Display for DeprecationLevel
impl Display for DeprecationLevel
impl Copy for DeprecationLevel
Auto Trait Implementations§
impl Freeze for DeprecationLevel
impl RefUnwindSafe for DeprecationLevel
impl Send for DeprecationLevel
impl Sync for DeprecationLevel
impl Unpin for DeprecationLevel
impl UnwindSafe for DeprecationLevel
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)